2010-02-08 Christophe Lyon <christophe.lyon@st.com>
commitba791f704e79244b0f9478bb7a59fd8b73299870
authorChristophe Lyon <christophe.lyon@st.com>
Tue, 9 Feb 2010 14:44:48 +0000 (9 14:44 +0000)
committerChristophe Lyon <christophe.lyon@st.com>
Tue, 9 Feb 2010 14:44:48 +0000 (9 14:44 +0000)
treec5a387610e18334f0d27c818e7ce5107abad3f6d
parent97050f40c94f2099be3f4ba372cb8045efe39e50
2010-02-08  Christophe Lyon  <christophe.lyon@st.com>

gas/
* config/tc-arm.c (md_pcrel_from_section): Keep base to zero for
non-local branches (BFD_RELOC_THUMB_PCREL_BRANCH23,
BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_ARM_PCREL_BLX,
BFD_RELOC_ARM_PCREL_CALL)

gas/testsuite/
* gas/arm/branch-reloc.s, gas/arm/branch-reloc.d,
gas/arm/branch-reloc.l: New tests and expected results with all
variants of call: ARM/Thumb, local/global, inter/intra-section,
using BL/BLX.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/branch-reloc.d [new file with mode: 0644]
gas/testsuite/gas/arm/branch-reloc.l [new file with mode: 0644]
gas/testsuite/gas/arm/branch-reloc.s [new file with mode: 0644]