[gold commit] Make linker-created symbols relocatable where appropriate
Cary Coutant
ccoutant@gmail.com
Thu Dec 22 00:24:00 GMT 2016
Linker-created symbols like __ehdr_start, __etext, __edata, and end
should be relocatable, not absolute. (Especially for PIE output.)
-cary
2016-12-21 Cary Coutant <ccoutant@gmail.com>
gold/
* output.cc (Output_segment::first_section): Return NULL if there are
no sections in the segment.
* output.h (Output_segment::first_section_load_address): Assert that
first section is not NULL.
* symtab.cc (Symbol_table::sized_write_globals): Attach linker-created
segment-relative symbols to first section of the segment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr20963.patch
Type: application/octet-stream
Size: 1788 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20161222/32078bf4/attachment.obj>
More information about the Binutils
mailing list