gold patch committed: Only call add_dynamic_reloc for a dynamic reloc

Ian Lance Taylor iant@google.com
Fri Dec 16 23:48:00 GMT 2011


This minor cleanup patch to gold only calls add_dynamic_reloc if we are
in fact adding a dynamic reloc.  Previously this was called for any
reloc.  In practice this only made a difference when using
--emit-relocs.  Committed to mainline.

Ian


2011-12-16  Ian Lance Taylor  <iant@google.com>

	* output.h (Output_data_reloc_generic::add): Only call
	add_dynamic_reloc if this is a dynamic reloc section.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 655 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20111216/cf66e284/attachment.bin>


More information about the Binutils mailing list