Change the ARM assembler's ADR and ADRl pseudo-ops so that they will only set the...
authorNick Clifton <nickc@redhat.com>
Wed, 20 Jun 2018 11:38:10 +0000 (12:38 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 20 Jun 2018 11:38:10 +0000 (12:38 +0100)
commitfc6141f097056f830a412afebed8d81a9d72b696
tree8d7eef3f3b251778800761a2d43124a3237a7686
parentc6643fcc058d6b4aebca75818fbbb705837a9fa3
Change the ARM assembler's ADR and ADRl pseudo-ops so that they will only set the bottom bit of imported thumb function symbols if the -mthumb-interwork option is active.

For more information see the email thread starting here:
https://www.sourceware.org/ml/binutils/2018-05/msg00348.html

PR 21458
* tc-arm.c (do_adr): Only set the bottom bit of an imported thumb
function symbol address if -mthumb-interwork is active.
(do_adrl): Likewise.
* doc/c-arm.texi: Update descriptions of the -mthumb-interwork
option and the ADR and ADRL pseudo-ops.
* NEWS: Mention the new behaviour of the ADR and ADRL pseudo-ops.
* testsuite/gas/arm/pr21458.d: Add -mthumb-interwork option to
assembler command line.
* testsuite/gas/arm/adr.d: Likewise.
* testsuite/gas/arm/adrl.d: Likewise.
gas/ChangeLog
gas/NEWS
gas/config/tc-arm.c
gas/doc/c-arm.texi
gas/testsuite/gas/arm/adr.d
gas/testsuite/gas/arm/adrl.d
gas/testsuite/gas/arm/pr21458.d