2008-03-07 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Sat, 8 Mar 2008 01:20:39 +0000 (01:20 +0000)
committerPaul Brook <paul@codesourcery.com>
Sat, 8 Mar 2008 01:20:39 +0000 (01:20 +0000)
commit39623e120c11861d80f4859ccf3e7b77b7c15fa3
treec3b3b4d318c5eee2423edcdef40bf8b4b984769e
parent460b2855087fab29ecd3b0546ec28ecb259e45ab
2008-03-07  Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and
MOVT relocations.
(elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign
extension.
(elf32_arm_relocate_section): Handle MOVW and MOVT
relocations.  Improve safety check for other weird relocations.
(elf32_arm_check_relocs): Only set h->needs_plt for branch/call
relocations.

gas/
* config/tc-arm.c (md_apply_fix): Use correct offset range.

ld/testsuite/
* ld-arm/arm-elf.exp (armelftests): Add movw-merge and arm-app-movw.
* ld-arm/arm-app-movw.s: New test.
* ld-arm/arm-app.r: Update expected output.
* ld-arm/movw-merge.d: New test.
* ld-arm/movw-merge.s: New test.
bfd/ChangeLog
bfd/elf32-arm.c
gas/ChangeLog
gas/config/tc-arm.c
ld/testsuite/ChangeLog
ld/testsuite/ld-arm/arm-app-movw.s [new file with mode: 0644]
ld/testsuite/ld-arm/arm-app.r
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/movw-merge.d [new file with mode: 0644]
ld/testsuite/ld-arm/movw-merge.s [new file with mode: 0644]