This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [IFUNC] PATCH: Add an ifunc attribute


On Fri, Jul 24, 2009 at 07:43:42AM -0700, H.J. Lu wrote:
> ld.so can call a function if its dependencies have been resolved.
> You have to change ld and ld.so to make sure that. It took me a
> while to get it right in ld and ld.so for x86.
> 
> Which GOT entry is uninitialized? Why hasn't it been initialized?
> What is this GOT entry used for?

The GOT entry for "global", used by foo_ifunc or bar_ifunc (I didn't
bother finding out which one).  The whole point of the testcase was to
demonstrate that you can't write an ifunc that reads a global var,
unless you perform ifunc relocations last, globally.  Even on x86.
Please run the testcase against your latest and greatest toolchain.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]