gold patch committed: Don't crash on empty reloc sections

Ian Lance Taylor iant@google.com
Wed Jun 24 18:31:00 GMT 2009


PR 10244 has an interesting object file with an empty .text section and
also an empty .rel.text section.  gold crashes on this case, expecting
to see a view of the empty .text section.  I committed this patch to
avoid the crash by skipping empty reloc sections.

Ian


2009-06-24  Ian Lance Taylor  <iant@google.com>

	PR 10244
	* reloc.cc (relocate_sections): Skip empty relocation sections.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 829 bytes
Desc: Skip empty reloc sections
URL: <https://sourceware.org/pipermail/binutils/attachments/20090624/14836259/attachment.bin>


More information about the Binutils mailing list