aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2015-01-13 11:21:43 +0000
committerJiong Wang <jiong.wang@arm.com>2015-01-13 11:21:43 +0000
commit0172429c3b2656e96ac390a9cdfc441f63df41c9 (patch)
treee163d0cbcea8a8c71c57fea09463e4b07062ec39 /bfd
parentbab91cce20e052822e128c672e0570c8f3f58131 (diff)
downloadgdb-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/ChangeLog5
-rw-r--r--bfd/elfnn-aarch64.c2
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 */