PR21503, Gold doesn't create linker stub symbols on ppc64
authorAlan Modra <amodra@gmail.com>
Mon, 22 May 2017 12:01:34 +0000 (21:31 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 23 May 2017 12:19:33 +0000 (21:49 +0930)
commit590b87ffa386ea403e2cb61525c6aafef77097a2
tree42104f2329f587aa7a5990631b61c4aa122bb395
parent6e3f3473e2136e77d6346d5bca894c38e5389116
PR21503, Gold doesn't create linker stub symbols on ppc64

PR 21503
* options.h: Add --emit-stub-syms option.
* powerpc.cc (object_id): New.
(Powerpc_relobj): Add uniq_ and accessor.  Sort variables for
better packing.
(Powerpc_dynobj): Sort variables for better packing.
(Target_powerpc::define_local): New function.
(Target_powerpc::group_sections): Pass stub table size to
Stub_table constructor.
(Target_powerpc::do_relax): Define stub and glink symbols.
(Stub_table): Add uniq_ variable, and id param to constructor.
(Stub_table::Plt_stub_ent): Add indx_ variable.
(Stub_table::Branch_stub_entries): Move typedef earlier.
(Stub_table::branch_stub_size): Replace "to" parameter with a
Branch_stub_entries iterator.
(Stub_table::add_long_branch_entry): Adjust to suit.
(Stub_table::add_plt_call_entry): Set indx_.
(Stub_table::define_stub_syms): New function.
gold/ChangeLog
gold/options.h
gold/powerpc.cc