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: Problem with ld for PDP-11


On Thu, 13 Feb 2020, Alan Modra wrote:

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

Oh, that's something I don't know about.  Can you point me to an
example so I can try it?

-- Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]