This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Problem with ld for PDP-11
On Wed, Feb 12, 2020 at 10:02:02PM -0800, Stephen Casner wrote:
> So now I went digging my way back through the code sequence using
> printfs to find where the original data size gets rounded up. It
> turns out that the size of the data section is always even because the
> assembler "as" or "gas" always pads the data section with a zero byte
> if the size is odd, so the object file header always contains an even
> size for the .data section. That's because there is always relocation
> and symbol information following it.
>
> Therefore the size of the .data section in ld is always even
No, a linker script might contribute to .data output.
--
Alan Modra
Australia Development Lab, IBM