[GOLD] PowerPC --stub-group-multi
authorAlan Modra <amodra@gmail.com>
Wed, 7 Dec 2016 03:45:59 +0000 (14:15 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 7 Dec 2016 03:45:59 +0000 (14:15 +1030)
commit1c3a5fbe155614a0f87079b953df0d7618e0ab50
tree8335a91b8f1a56a9548e2ea37f5c69a6aa192bcb
parenta5018ae555cdf491005907c03f997558ba15fc47
[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.
gold/ChangeLog
gold/options.h
gold/powerpc.cc