Re: RFC/RFA: MN10300: Fix handling of protected functions in shared libraries.

2011-05-25 Thread Alan Modra
On Mon, May 23, 2011 at 04:21:38PM +0100, Nick Clifton wrote: > The problem here is that GCC has decided that since "g" is protected > it does not need a PLT entry. Right. > But the linker has decided that since > "g" is a function it does need a PLT entry (even though it is > protected)

Re: RFC/RFA: MN10300: Fix handling of protected functions in shared libraries.

2011-05-23 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/23/11 09:21, Nick Clifton wrote: > Hi Alex, Hi Jeff, Hi Richard, > > Consider the following small test case: > > % cat test1.c > extern int g (void) __attribute__ ((visibility("protected"))); > int f (void) { return g (); } > >