aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
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/elf32-arm.c
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/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c2
1 files changed, 2 insertions, 0 deletions
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;
}