aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2016-01-08 09:47:24 +0000
committerJiong Wang <jiong.wang@arm.com>2016-01-08 09:49:03 +0000
commit109575d7ebac21a0eb67980001ecd4173d696f88 (patch)
tree7fd8ebb931108968b105b9cba028ad88d8f635d8 /bfd
parent2ed73a6ff5f75c689e9d23603c2078ade27ddf6c (diff)
downloadgdb-109575d7ebac21a0eb67980001ecd4173d696f88.zip
gdb-109575d7ebac21a0eb67980001ecd4173d696f88.tar.gz
gdb-109575d7ebac21a0eb67980001ecd4173d696f88.tar.bz2
[ARM] PR ld/19368: Add missing relocation type class for R_ARM_IRELATIVE
2016-01-08 Richard Sandiford <richard.sandiford@arm.com> Jiong Wang <jiong.wang@arm.com> PR ld/19368 bfd/ * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to reloc_class_ifunc. ld/ * testsuite/ld-arm/ifunc-3.rd: Update expected result. * testsuite/ld-arm/ifunc-4.rd: Likewise. * testsuite/ld-arm/ifunc-9.rd: Likewise. * testsuite/ld-arm/ifunc-10.rd: Likewise. * testsuite/ld-arm/ifunc-12.rd: Likewise. * testsuite/ld-arm/ifunc-13.rd: Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elf32-arm.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 33cbe65..d1c5a3b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2016-01-08 Richard Sandiford <richard.sandiford@arm.com>
+ Jiong Wang <jiong.wang@arm.com>
+
+ PR ld/19368
+ * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
+ reloc_class_ifunc.
+
2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
* elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index f059950..c594e65 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -15535,6 +15535,8 @@ elf32_arm_reloc_type_class (const struct bfd_link_info *info ATTRIBUTE_UNUSED,
return reloc_class_plt;
case R_ARM_COPY:
return reloc_class_copy;
+ case R_ARM_IRELATIVE:
+ return reloc_class_ifunc;
default:
return reloc_class_normal;
}