]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/config/tc-arm.c
Fix use of ARM ADR and ADRl pseudo-instructions with thumb function symbols.
authorNick Clifton <nickc@redhat.com>
Mon, 15 May 2017 14:29:02 +0000 (15:29 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 15 May 2017 14:29:02 +0000 (15:29 +0100)
commit52a86f843b6dee1de9977293da9786649b146b05
tree51bb23eaae6f8107c8256739bd57d25d050a7868
parentb32465c97c12cc6049cefcde1beb3e2bfbfa232c
Fix use of ARM ADR and ADRl pseudo-instructions with thumb function symbols.

PR gas/21458
* config/tc-arm.c (do_adr): If the ADR involves a thumb function
symbol, ensure that the T bit will be set.
(do_adrl): Likewise.
(do_t_adr): Likewise.
* testsuite/gas/arm/pr21458.s: New test.
* testsuite/gas/arm/pr21458.d: New test driver.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/pr21458.d [new file with mode: 0644]
gas/testsuite/gas/arm/pr21458.s [new file with mode: 0644]