diff options
author | Jiong Wang <jiong.wang@arm.com> | 2015-01-13 11:21:43 +0000 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2015-01-13 11:21:43 +0000 |
commit | 0172429c3b2656e96ac390a9cdfc441f63df41c9 (patch) | |
tree | e163d0cbcea8a8c71c57fea09463e4b07062ec39 /bfd | |
parent | bab91cce20e052822e128c672e0570c8f3f58131 (diff) | |
download | gdb-0172429c3b2656e96ac390a9cdfc441f63df41c9.zip gdb-0172429c3b2656e96ac390a9cdfc441f63df41c9.tar.gz gdb-0172429c3b2656e96ac390a9cdfc441f63df41c9.tar.bz2 |
[AArch64] Enable overflow check for TLSLE_MOVW_TPREL_G2
bfd/
* elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check for
TLSLE_MOVW_TPREL_G2.
ld/testsuite/
* ld-aarch64/tprel_g2_overflow.s: New testcase.
* ld-aarch64/tprel_g2_overflow.d: New expectation file.
* ld-aarch64/aarch64-elf.exp: Run new testcase.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfnn-aarch64.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e7630ab..b43a491 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2015-01-13 Jiong Wang <jiong.wang@arm.com> + * elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check + for TLSLE_MOVW_TPREL_G2. + +2015-01-13 Jiong Wang <jiong.wang@arm.com> + PR ld/17415 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned. diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index f632eee..c8401c1 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -968,7 +968,7 @@ static reloc_howto_type elfNN_aarch64_howto_table[] = 12, /* bitsize */ FALSE, /* pc_relative */ 0, /* bitpos */ - complain_overflow_dont, /* complain_on_overflow */ + complain_overflow_unsigned, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ AARCH64_R_STR (TLSLE_MOVW_TPREL_G2), /* name */ FALSE, /* partial_inplace */ |