gold patch committed: For -r force orphan sections to address 0
Ian Lance Taylor
iant@google.com
Thu Jun 9 19:28:00 GMT 2011
This gold patch places orphan sections at address 0 when the -r option
is used. I believe this corresponds to the GNU linker behaviour. It
may make a difference when building Linux kernel modules, which are
linked with -r with a linker script which does nothing but discard some
sections. Committed to mainline and 2.21 branch.
Ian
2011-06-09 Ian Lance Taylor <iant@google.com>
* script-sections.cc
(Orphan_output_section::set_section_addresses): For a relocatable
link set address to 0.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 958 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20110609/a9d7ee19/attachment.bin>
More information about the Binutils
mailing list