Re: [PATCH 1/2] Add thread_info_cache_init() to all archs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin Herrenschmidt
Date: Wednesday, May 21, 2008 - 10:56 am

On Fri, 2008-04-18 at 16:44 +1000, Benjamin Herrenschmidt wrote:

Back to this old subject...

I'm having reports that this is not working...

gcc is seeing the empty weak function and is optimizing it out
before it gets a chance to link to the arch provided one.

This would affect that and the other one next to it..

That seems pretty bad... it causes nasty crashes as we end up having no
idea what the compiler decided to generate... I suppose we could keep
the weak stubs out of the file where they are called but that sucks.

ie. This is some form of gcc 4.1.1

Is that a known problem ? A gcc issue ? Not sure what is expected from
those weak functions.

Ben.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed Apr 9, 8:22 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Thu Apr 10, 2:46 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Sun Apr 13, 5:19 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Sun Apr 13, 5:38 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Sun Apr 13, 7:13 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Thu Apr 17, 8:58 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Thu Apr 17, 9:19 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Kyle McMartin, (Thu Apr 17, 9:21 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Michael Ellerman, (Thu Apr 17, 9:38 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Thu Apr 17, 11:44 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 10:56 am)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Wed May 21, 11:41 am)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Sam Ravnborg, (Wed May 21, 12:06 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 12:44 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 1:38 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Wed May 21, 1:52 pm)