This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: coff patch for ld -r -S crash with djgpp
- From: "Mark E." <snowball3 at softhome dot net>
- To: binutils at sources dot redhat dot com
- Date: Tue, 24 Sep 2002 17:36:15 -0400
- Subject: Re: coff patch for ld -r -S crash with djgpp
- References: <3D90620C.20423.6FB4C4@localhost> (snowball3@softhome.net)
BTW, the bug involves -r and -S, _bfd_coff_final_link and mark_relocs in cofflink.c. _bfd_coff_final_link
determines how much space to allocate for holding information about relocs, etc. by examining the
output bfd. Then mark_relocs crawls through the input bfds and reads in the relocs and marks them
used. The input bfds still contain those sections excluded from the output, so a memory overflow can
occur if these extra relocs aren't excluded.
Mark