Problem with ld for PDP-11

Stephen Casner casner@acm.org
Sat Feb 15 00:11:00 GMT 2020


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



More information about the Binutils mailing list