[PATCH RFC] gas: don't process relocs for content-less sections
Alan Modra
amodra@gmail.com
Mon Dec 7 22:52:00 GMT 2015
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
More information about the Binutils
mailing list