Allow target files access to default TC_FORCE_RELOCATION defines
authorAlan Modra <amodra@gmail.com>
Mon, 15 May 2017 23:13:24 +0000 (08:43 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 16 May 2017 01:05:02 +0000 (10:35 +0930)
commit91cb9803fcf6d1c7001395d80f79120ae8e6338a
tree76ce1a1640c62ee9b78e692e1e41b8a1abd67ccf
parentbc4e12ded1d4c8d589d82b2a10ade6b47f219db3
Allow target files access to default TC_FORCE_RELOCATION defines

* write.c (GENERIC_FORCE_RELOCATION_LOCAL): Define.
(TC_FORCE_RELOCATION_LOCAL): Use it.
(GENERIC_FORCE_RELOCATION_SUB_SAME): Define.
(TC_FORCE_RELOCATION_SUB_SAME): Use it.
* config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL,
TC_FORCE_RELOCATION_SUB_SAME): Use GENERIC defines.
* config/tc-aarch64.h: Similarly.
* config/tc-avr.h: Similarly.
* config/tc-cris.h: Similarly.
* config/tc-i386.h: Similarly.
* config/tc-i960.h: Similarly.
* config/tc-ia64.h: Similarly.
* config/tc-microblaze.h: Similarly.
* config/tc-mips.h: Similarly.
* config/tc-msp430.h: Similarly.
* config/tc-nds32.h: Similarly.
* config/tc-pru.h: Similarly.
* config/tc-riscv.h: Similarly.
* config/tc-rl78.h: Similarly.
* config/tc-s390.h: Similarly.
* config/tc-sh.h: Similarly.
* config/tc-sh64.h: Similarly.
* config/tc-sparc.h: Similarly.
* config/tc-xtensa.h: Similarly.
* config/tc-mn10300.h: Similarly.
(GENERIC_FORCE_RELOCATION_LOCAL): Define.
* config/tc-msp430.c (msp430_force_relocation_local): Modify to
be addition to rather than replacement of standard
TC_FORCE_RELOCATION_LOCAL.
23 files changed:
gas/ChangeLog
gas/config/tc-aarch64.h
gas/config/tc-arm.h
gas/config/tc-avr.h
gas/config/tc-cris.h
gas/config/tc-i386.h
gas/config/tc-i960.h
gas/config/tc-ia64.h
gas/config/tc-microblaze.h
gas/config/tc-mips.h
gas/config/tc-mn10300.h
gas/config/tc-msp430.c
gas/config/tc-msp430.h
gas/config/tc-nds32.h
gas/config/tc-pru.h
gas/config/tc-riscv.h
gas/config/tc-rl78.h
gas/config/tc-s390.h
gas/config/tc-sh.h
gas/config/tc-sh64.h
gas/config/tc-sparc.h
gas/config/tc-xtensa.h
gas/write.c