diff options
author | Peter Collingbourne <pcc@google.com> | 2015-12-17 16:50:35 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2015-12-17 16:52:12 -0800 |
commit | ce3e49806d505721e0875e704de0b6fcba7660ed (patch) | |
tree | e213ef2f53c64f2ded01f1f1f797d9d88f04d10a /gold/options.h | |
parent | 33e0d1ca50b06a19fc1b813755cce5b6c4042d95 (diff) | |
download | binutils-ce3e49806d505721e0875e704de0b6fcba7660ed.zip binutils-ce3e49806d505721e0875e704de0b6fcba7660ed.tar.gz binutils-ce3e49806d505721e0875e704de0b6fcba7660ed.tar.bz2 |
Implement --long-plt flag (ARM only).
gold/
PR gold/18780
* arm.cc (Target_arm::do_make_data_plt): Choose PLT generator based
on value of --long-plt flag.
(Output_data_plt_arm_standard::do_get_plt_entry_size): Moved to
Output_data_plt_arm_short.
(Output_data_plt_arm_standard::do_fill_plt_entry): Likewise.
(Output_data_plt_arm_standard::plt_entry): Likewise.
(Output_data_plt_arm_standard::do_fill_first_plt_entry): Fix
variable reference.
(Output_data_plt_arm_short): New class.
(Output_data_plt_arm_short::do_fill_plt_entry): Error out on too large
PLT offsets instead of asserting.
(Output_data_plt_arm_long): New class.
* options.h (General_options): Define --long-plt flag.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index ffc44e6..8b5159f 100644 --- a/gold/options.h +++ b/gold/options.h @@ -834,6 +834,10 @@ class General_options "veneer"), NULL); + DEFINE_bool(long_plt, options::TWO_DASHES, '\0', false, + N_("(ARM only) Generate long PLT entries"), + N_("(ARM only) Do not generate long PLT entries")); + DEFINE_bool(g, options::EXACTLY_ONE_DASH, '\0', false, N_("Ignored"), NULL); |