This is the mail archive of the
mailing list for the binutils project.
Re: GNU ld ifunc dynamic relocation order
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Sat, 16 Nov 2013 12:33:30 +1030
- Subject: Re: GNU ld ifunc dynamic relocation order
- Authentication-results: sourceware.org; auth=none
- References: <20130327132430 dot GG14552 at bubble dot grove dot modra dot org> <20130327133442 dot GH14552 at bubble dot grove dot modra dot org> <CAMe9rOqd2CmHPn1kivW-u4Bov_J5GZOMgaN50j1cexqrEkcJ_g at mail dot gmail dot com>
On Fri, Nov 15, 2013 at 04:23:20PM -0800, H.J. Lu wrote:
> Where does PPC put IRELATIVE relocations?
All ifunc relocs are put in their own section.
> I tried to use
> reloc_class_ifunc for x86. But it doesn't work since x86 has
> IRELATIVE relocations in .rel.plt or .rela.plt section:
> Can you make it work for .rel.plt or .rela.plt sectio?
Reordering PLT relocs would be dangerous, I think. Most ABIs expect a
1-1 correspondence between PLT entries and relocs.
It's not hard to put ifunc relocs in their own section. Why don't you
give that a try?
Australia Development Lab, IBM