]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
cskyelf.em branch stub handling
authorAlan Modra <amodra@gmail.com>
Wed, 10 Apr 2019 02:28:15 +0000 (11:58 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 10 Apr 2019 04:00:32 +0000 (13:30 +0930)
commit53b81c6de19a1f89e3c797631e72d05ba41444dc
treeb6bb3e21aa731f82ab8fc369ba3b278da27e1a0e
parentc55b17b8098abde4ae7dfe0ec1f3b22a7fb0a34d
cskyelf.em branch stub handling

This fixes the csky-elf ld-elf/pr21884 and ld-unique/pr21529 failures,
by disabling branch stubs for binary (and other non-csky) output.
The csky-linux target gets branch stubs off by default because
presumably there are reasons why branch stubs were disabled, but
rather than killing the support completely it can be enabled by
--branch-stub.

* emultempl/cskyelf.em (csk_elf_before_parse): New function,
setting use_branch_stub false for linux.
(csky_elf_create_output_section_statements): Do emit this
function and all others in the file for linux, plus the branch
option control.  Disable branch stubs when non-ELF.
ld/ChangeLog
ld/emultempl/cskyelf.em