aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-06-18 10:18:42 +0100
committerNick Clifton <nickc@redhat.com>2015-06-18 10:18:42 +0100
commit75c11999673ba32027eb17f6df9c37904622ed24 (patch)
tree917740473045b9fe9c96f18b5332ed274a94bea2 /bfd
parent57b42d6489218e29cb18edd111c97f4390b62ad9 (diff)
downloadgdb-75c11999673ba32027eb17f6df9c37904622ed24.zip
gdb-75c11999673ba32027eb17f6df9c37904622ed24.tar.gz
gdb-75c11999673ba32027eb17f6df9c37904622ed24.tar.bz2
Fix the computation of the addends for an ARM_TLS_LE32 reloc.
PR gas/18481 bfd * elf32-arm.c (R_ARM_TLS_LE32): Set the special function to NULL. gas * config/tc-arm.c (tc_gen_reloc): Include BFD_RELOC_ARM_TLS_LE32 in the same case as BFD_RELOC_ARM_TLS_IS32. tests * gas/arm/tls.s: Add tests of the tpoff pseudo with a local symbol. * gas/arm/tls.d: Update expected output.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-arm.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index be36403..626d49a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-18 Nick Clifton <nickc@redhat.com>
+
+ PR 18481
+ * elf32-arm.c (R_ARM_TLS_LE32): Set the special function to NULL.
+
2015-06-15 Jon Turney <jon.turney@dronecode.org.uk>
* bfd.c: Change struct bfd_build_id to use bfd_size_type.
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 113f4eb..919df17 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -1606,7 +1606,7 @@ static reloc_howto_type elf32_arm_howto_table_1[] =
FALSE, /* pc_relative */
0, /* bitpos */
complain_overflow_bitfield,/* complain_on_overflow */
- bfd_elf_generic_reloc, /* special_function */
+ NULL, /* special_function */
"R_ARM_TLS_LE32", /* name */
TRUE, /* partial_inplace */
0xffffffff, /* src_mask */