gold patch committed: Discard .gnu_debuglink sections

Ian Lance Taylor iant@google.com
Fri Jan 8 21:08:00 GMT 2010


PR 11072 is about a failure with objcopy --add-gnu-debuglink for
binaries linked with gold.  The test case in the PR has a
.gnu_debuglink section.  objcopy --add-gnu-debuglink fails if the file
already has such a section.  The GNU linker discards .gnu_debuglink
sections.  So I changed gold to also discard those sections.
Committed to mainline.

Ian


2010-01-08  Ian Lance Taylor  <iant@google.com>

	PR 11072
	* layout.cc (Layout::include_section): Remove .gnu_debuglink
	sections.


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


More information about the Binutils mailing list