aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-05-22 21:31:34 +0930
committerAlan Modra <amodra@gmail.com>2017-05-23 21:49:33 +0930
commit590b87ffa386ea403e2cb61525c6aafef77097a2 (patch)
tree42104f2329f587aa7a5990631b61c4aa122bb395 /gold/options.h
parent6e3f3473e2136e77d6346d5bca894c38e5389116 (diff)
downloadbinutils-590b87ffa386ea403e2cb61525c6aafef77097a2.zip
binutils-590b87ffa386ea403e2cb61525c6aafef77097a2.tar.gz
binutils-590b87ffa386ea403e2cb61525c6aafef77097a2.tar.bz2
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.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index a8b1d46..202d4b0 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -814,6 +814,10 @@ class General_options
// e
+ DEFINE_bool(emit_stub_syms, options::TWO_DASHES, '\0', true,
+ N_("(PowerPC only) Label linker stubs with a symbol"),
+ N_("(PowerPC only) Do not label linker stubs with a symbol"));
+
DEFINE_string(entry, options::TWO_DASHES, 'e', NULL,
N_("Set program start address"), N_("ADDRESS"));