gold patch committed: Discard .gnu_debuglink sections

Ian Lance Taylor
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.


2010-01-08  Ian Lance Taylor  <>

	PR 11072
	* (Layout::include_section): Remove .gnu_debuglink

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 677 bytes
Desc: gnu_debuglink
URL: <>

More information about the Binutils mailing list