aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-09-01 12:38:03 +0930
committerAlan Modra <amodra@gmail.com>2020-09-01 16:02:48 +0930
commit821e059c2626fb0b2ee91898b1c74ea9636c6175 (patch)
tree8cce860547198f93e59039e1801ad8493da54ee1 /bfd/elf32-arm.c
parent7af677524e205f3c343707d61bccd4dfd74089da (diff)
downloadgdb-821e059c2626fb0b2ee91898b1c74ea9636c6175.zip
gdb-821e059c2626fb0b2ee91898b1c74ea9636c6175.tar.gz
gdb-821e059c2626fb0b2ee91898b1c74ea9636c6175.tar.bz2
arm: ubsan: shift exponent 4G
* reloc.c (N_ONES): Handle N=0. * elf32-arm.c (elf32_arm_howto_table_1): Set complain_overflow_dont for R_ARM_TLS_DESCSEQ and R_ARM_THM_TLS_DESCSEQ.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 6202695..2f6bd88 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -1391,7 +1391,7 @@ static reloc_howto_type elf32_arm_howto_table_1[] =
0, /* bitsize */
FALSE, /* pc_relative */
0, /* bitpos */
- complain_overflow_bitfield,/* complain_on_overflow */
+ complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_ARM_TLS_DESCSEQ", /* name */
FALSE, /* partial_inplace */
@@ -1683,7 +1683,7 @@ static reloc_howto_type elf32_arm_howto_table_1[] =
0, /* bitsize */
FALSE, /* pc_relative */
0, /* bitpos */
- complain_overflow_bitfield,/* complain_on_overflow */
+ complain_overflow_dont,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_ARM_THM_TLS_DESCSEQ",/* name */
FALSE, /* partial_inplace */