TIC6X __c6xabi_DSBT_BASE
authorAlan Modra <amodra@gmail.com>
Sat, 2 Jun 2018 08:35:24 +0000 (18:05 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Jun 2018 23:37:32 +0000 (09:07 +0930)
commit527278f3360dde3e5439b8d10f3f635155b35aca
treeceda73acd52a8af921680d4c6e03ebef48144e98
parente5a77256e8961294b3ea7d483124834311ca363b
TIC6X __c6xabi_DSBT_BASE

Adding an undefined __c6xabi_DSBT_BASE via an EXTERN in the linker
script isn't ideal, as the symbol is not always needed.  This patch
adds the undefined symbol on encountering relocations where it is
implicitly referenced.

bfd/
* elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
__c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
ld/
* emulparams/elf32_tic6x_le.sh (EXECUTABLE_SYMBOLS): Don't define.
bfd/ChangeLog
bfd/elf32-tic6x.c
ld/ChangeLog
ld/emulparams/elf32_tic6x_le.sh