[BFD][AARCH64]Fix MOVW_SABS_G(0,1,2) relocation overflow check.
authorRenlin Li <renlin.li@arm.com>
Fri, 26 Feb 2016 17:52:34 +0000 (17:52 +0000)
committerRenlin Li <renlin.li@arm.com>
Fri, 26 Feb 2016 18:00:15 +0000 (18:00 +0000)
commitc5e3a3641ea9d6ed2918021fd77925825d24e9be
treea058e83c984b3c516e5ca9005343884bb4a3af6b
parentbae420ef26f4331415b0503141c5931318025906
[BFD][AARCH64]Fix MOVW_SABS_G(0,1,2) relocation overflow check.

For these three relocations, 17 bit signed value should be used, instead of
16 bit. The bitsize field is changed from 16 to 17, this field in aarch64
backend is used for overflow check only.

bfd/

2016-02-26  Renlin Li  <renlin.li@arm.com>

    * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
    check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.

ld/

2016-02-26  Renlin Li  <renlin.li@arm.com>

    * testsuite/ld-aarch64/aarch64-elf.exp: Run new testcases.
    * testsuite/ld-aarch64/emit-relocs-270.d: Update to use new boundary.
    * testsuite/ld-aarch64/emit-relocs-271.d: Likewise.
    * testsuite/ld-aarch64/emit-relocs-272.d: Likewise.
    * testsuite/ld-aarch64/emit-relocs-270-overflow.d: New.
    * testsuite/ld-aarch64/emit-relocs-270-overflow.s: New.
    * testsuite/ld-aarch64/emit-relocs-271-overflow.d: New.
    * testsuite/ld-aarch64/emit-relocs-271-overflow.s: New.
    * testsuite/ld-aarch64/emit-relocs-272-overflow.d: New.
    * testsuite/ld-aarch64/emit-relocs-272-overflow.s: New.
13 files changed:
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/emit-relocs-270-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-270-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-270.d
ld/testsuite/ld-aarch64/emit-relocs-271-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-271-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-271.d
ld/testsuite/ld-aarch64/emit-relocs-272-overflow.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-272-overflow.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/emit-relocs-272.d