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 RFC] gas: don't process relocs for content-less sections


On Mon, Dec 07, 2015 at 07:45:49AM -0700, Jan Beulich wrote:
> In line with write_contents(), make write_relocs() bail early on
> sections without contents. Otherwise (at least without the other pair
> of patches just sent) .bss style sections may get relocations emitted
> for them, even though such sections aren't supposed to have any
> relocations attached.
> 
> However, this causes the gas/all/none test to fail. Thoughts/advice?

I agree that .bss should not have relocations in an executable or
shared library, but it might be useful to have marker relocs in a
relocatable object.

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