gold patch committed: Permit assignment to dot outside of SECTIONS
Ian Lance Taylor
iant@google.com
Fri Oct 16 05:21:00 GMT 2009
The Linux kernel build uses linker scripts with assignments to the dot
symbol outside of the SECTIONS clause in order to implement asserts.
Although an assignment to dot outside of SECTIONS, apparently this was
required in order to use assertions in older versions of the GNU
linker. The GNU linker essentially treats assignments to dot outside
of SECTIONS as though they occurred within SECTIONS. I committed this
patch to make gold act the same way.
Ian
2009-10-15 Ian Lance Taylor <iant@google.com>
* script.cc (Script_options::add_symbol_assignment): Always add a
dot assginment to script_sections_.
* script-sections.cc (Script_sections::add_dot_assignment):
Initialize if necessary.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 2045 bytes
Desc: dot assignment
URL: <https://sourceware.org/pipermail/binutils/attachments/20091016/4111b450/attachment.bin>
More information about the Binutils
mailing list