gold patch committed: Discard R_xxx_NONE relocations with -r

Ian Lance Taylor iant@google.com
Fri Dec 12 02:44:00 GMT 2008


PR 7091 is about a case in which gold crashes because it can not get
the output symbol index of input symbol 0.  While I don't have an
actual test case for this, this appears to be happening because of
R_386_NONE relocations in the input files.  Those relocations may be
discarded when linking with -r.  I committed this patch to do that.

Ian


2008-12-11  Ian Lance Taylor  <iant@google.com>

	PR 7091
	* target-reloc.h (Default_scan_relocatable_relocs): For each
	function, map r_type == 0 to RELOC_DISCARD.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 2095 bytes
Desc: Discard R_xxx_NONE relocs with -r
URL: <https://sourceware.org/pipermail/binutils/attachments/20081212/92faec23/attachment.bin>


More information about the Binutils mailing list