]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/config/tc-sparc.c
gas: enable PC-relative diff relocations on sparc64
authorJames Clarke <jrtc27@jrtc27.com>
Wed, 23 Aug 2017 12:46:45 +0000 (05:46 -0700)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 23 Aug 2017 12:46:45 +0000 (05:46 -0700)
commitf6a36b0c9e537e4525f3b0687a4f76b4f77bf173
treed8dba9f162f51dbef42ab479295c4c2fdc19bda7
parentb80c727008fc32d5271f3966be4e2a43badf8055
gas: enable PC-relative diff relocations on sparc64

gas/
* config/tc-sparc.c (tc_gen_reloc): Convert BFD_RELOC_8/16/32/64
into the corresponding BFD_RELOC_8/16/32/64_PCREL relocation
when requested.
* config/tc-sparc.h (DIFF_EXPR_OK): Define to enable PC-relative
diff relocations.
(TC_FORCE_RELOCATION_SUB_LOCAL): Define to ensure only supported
relocations are made PC-relative.
(CFI_DIFF_EXPR_OK): Define to 0 to force BFD_RELOC_32_PCREL to
be used directly, since otherwise BFD_RELOC_SPARC_UA32 will be
used for .eh_frame which cannot in general be converted to a
BFD_RELOC_32_PCREL due to alignment requirements.
gas/ChangeLog
gas/config/tc-sparc.c
gas/config/tc-sparc.h