This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: binutils-20000625 ld.exe --shared broken
> (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.