This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Problem with ld for PDP-11
I have submitted bug 25569 with a patch for this proposed fix.
-- Steve
On Fri, 14 Feb 2020, Stephen Casner wrote:
> On Thu, 13 Feb 2020, Alan Modra wrote:
>
> > The correct fix then is to add a check that the original data size was
> > odd. That might not be easy as you may have lost the original data
> > size by the time this code runs. The AOUT code is a bit of a mess.
>
> Here's an alternative idea, if it would not be a logical scope
> violation to access the "where" member: check abfd->where to see if
> an odd byte has been written, and if so add a padding byte.
>
> > Oh, and if there is no data then it's the text section that might need
> > extending.
>
> That should not be a concern because PDP11 instruction must always be
> a multiple of words long.
>
> -- Steve