]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gold/output.cc
Make linker-created symbols relocatable where appropriate.
authorCary Coutant <ccoutant@gmail.com>
Thu, 22 Dec 2016 00:21:23 +0000 (16:21 -0800)
committerCary Coutant <ccoutant@gmail.com>
Thu, 22 Dec 2016 00:21:23 +0000 (16:21 -0800)
commiteb3908448bfe295e49bc7bd8a88b90deaa1ba95f
treec705db9301c8b59e10ee5964c06e64e6b56485d8
parent514b85276b5521256e1688005e94f1d69fc10c27
Make linker-created symbols relocatable where appropriate.

Linker-created symbols like __ehdr_start, __etext, __edata, and end
should be relocatable, not absolute.

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.
gold/ChangeLog
gold/output.cc
gold/output.h
gold/symtab.cc