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: [PATCH] PR ld/18169: sh_info of .rel.plt/.rela.plt sections isn't correct


On Thu, Mar 26, 2015 at 11:34:55AM -0700, H.J. Lu wrote:
> Since .rela.plt/rel.plt section doesn't contain relocations against .plt
> section, we shouldn't set sh_info for .rela.plt/rel.plt section.

That depends entirely on your ABI.  I'd argue that on x86 you ought to
be setting sh_info for .rel.plt to the .got.plt section index.
Setting sh_info to zero is not correct.

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