binutils-20000625 ld.exe --shared broken

DJ Delorie dj@delorie.com
Fri Jul 7 12:00:00 GMT 2000


> (bfd/coffcode.h: coff_write_object_contents)
> -	3250	  if (bfd_seek (abfd, scn_base, SEEK_SET) != 0)
> -	3251	    return false;

While you're in there, could you check one thing for me?  In bfd_seek,
is it actually using the BFD_IN_MEMORY code, but failing because we're
trying to seek past the end of the data block?  If so, it's probably
trying to "seek beyond EOF" to write out one of the structures, which
you can probably fix pretty quickly, by just growing the data block
(see the code to do that in bfd_write).  It probably should check for
the bfd being writable before allowing that, too.


More information about the Binutils mailing list