]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[GOLD, PowerPC] Add --no-stub-group-multi
authorAlan Modra <amodra@gmail.com>
Tue, 19 Sep 2017 02:15:51 +0000 (11:45 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 19 Sep 2017 05:11:14 +0000 (14:41 +0930)
commit2b5d4106a015cb50bfe8189f575a9a7a04ee9be0
tree941a6fb38866b8ce907b9c3cfd69a93fcf5c698e
parent8deff86b8c66a2f2e7792d99748e6c40911e02f2
[GOLD, PowerPC] Add --no-stub-group-multi

The trouble with stubs per output section is that ppc32 uses a plt
stub as the address of a global function.  This needs to be unique,
otherwise we'll get multiple addresses for a function.

Obviously this is only a partial solution, since ppc32 will get
multiple stubs when code is larger than 33M.  A proper fix will
involve selecting a unique stub to use for non-branch relocs.

* options.h (stub-group-multi): Default to true.  Add
--no-stub-group-multi.

(cherry picked from commit ab502e635e78a6c6c9c8abf3072bfeedaca9c26f)
gold/ChangeLog
gold/options.h