aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-12-07 14:15:59 +1030
committerAlan Modra <amodra@gmail.com>2016-12-07 14:15:59 +1030
commit1c3a5fbe155614a0f87079b953df0d7618e0ab50 (patch)
tree8335a91b8f1a56a9548e2ea37f5c69a6aa192bcb /gold/options.h
parenta5018ae555cdf491005907c03f997558ba15fc47 (diff)
downloadgdb-1c3a5fbe155614a0f87079b953df0d7618e0ab50.zip
gdb-1c3a5fbe155614a0f87079b953df0d7618e0ab50.tar.gz
gdb-1c3a5fbe155614a0f87079b953df0d7618e0ab50.tar.bz2
[GOLD] PowerPC --stub-group-multi
Adds a new option, defaulting to off, that allows a group of stubs to serve multiple output sections. Prior to this patch powerpc gold allowed this unconditionally, which is a little unsafe with clever code that discards/reuses sections at runtime. * options.h (--stub-group-multi): New PowerPC option. * powerpc.cc (Stub_control): Add multi_os_ var and param to constructor. Sort start_ var later. Comment State. (Stub_control::can_add_to_stub_group): Heed multi_os_. (Target_powerpc::group_sections): Update.
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 90ccc80..6722667 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1219,6 +1219,10 @@ class General_options
"stubs are always after the group. 1 means use default size"),
N_("SIZE"));
+ DEFINE_bool(stub_group_multi, options::TWO_DASHES, '\0', false,
+ N_("(PowerpC only) Allow a group of stubs to serve multiple "
+ "output sections"), NULL);
+
DEFINE_uint(split_stack_adjust_size, options::TWO_DASHES, '\0', 0x4000,
N_("Stack size when -fsplit-stack function calls non-split"),
N_("SIZE"));