This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: GNU ld ifunc dynamic relocation order


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:
> 
> http://www.sourceware.org/bugzilla/show_bug.cgi?id=16178
> 
> 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?

-- 
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]