This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [6/6] Main ARM STT_GNU_IFUNC patch
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sourceware dot org, patches at linaro dot org, richard dot sandiford at linaro dot org
- Date: Fri, 4 Mar 2011 08:53:27 -0800
- Subject: Re: [6/6] Main ARM STT_GNU_IFUNC patch
- References: <g4r5amu9rj.fsf@linaro.org>
On Fri, Mar 4, 2011 at 8:32 AM, Richard Sandiford
<richard.sandiford@linaro.org> wrote:
> This is the main STT_GNU_IFUNC patch. ?I'll try not to write too much
> about it because the explanations ought to be in the code. ?A few
> points though:
>
> - The main question was how to record PLT information for local
> ?symbools. ?One way (used by x86 and x86_64) is to have a fake hash
> ?table entry. ?Another (used by PPC) is to put the PLT information in
> ?the local symbol information. ?I tried both ways, but in the end I
> ?went for the latter. ?It seemed strange to have a hash table entry
> ?without a symbol name (which is after all the hash key), so I wasn't
> ?happy about having to add !root.root.string tests when using the
> ?former approach. ?It also seemed to make things more complicated
> ?overall.
>
I used fake hash table to handle complex things. You
may want to take a look at all x86 IFUNC linker tests and
adopt them for ARM.
--
H.J.