From 75c11999673ba32027eb17f6df9c37904622ed24 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 18 Jun 2015 10:18:42 +0100 Subject: 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. --- bfd/ChangeLog | 5 +++++ bfd/elf32-arm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'bfd') 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 + + PR 18481 + * elf32-arm.c (R_ARM_TLS_LE32): Set the special function to NULL. + 2015-06-15 Jon Turney * 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 */ -- cgit v1.1