This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold commit] Make linker-created symbols relocatable where appropriate


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.

Attachment: pr20963.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]