aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/arm-lib-plt-2a.s
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2011-03-14 15:53:33 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2011-03-14 15:53:33 +0000
commitf6e32f6db5fd9c527d978a27dbeef9f2f36f212a (patch)
treee1542b5f11897a86c8c9820dc9ff2dc4e62e22d2 /ld/testsuite/ld-arm/arm-lib-plt-2a.s
parentb436d85411e682b845d3d0d1d385e00504a4411a (diff)
downloadgdb-f6e32f6db5fd9c527d978a27dbeef9f2f36f212a.zip
gdb-f6e32f6db5fd9c527d978a27dbeef9f2f36f212a.tar.gz
gdb-f6e32f6db5fd9c527d978a27dbeef9f2f36f212a.tar.bz2
bfd/
* elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p, may_need_local_target_p and may_become_dynamic_p to classify the relocation type. Don't check info->symbolic or h->def_regular when deciding whether to record a potential dynamic reloc. Don't treat potential dynamic relocs as PLT references. (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't try to make the PLT reference count go negative. ld/testsuite/ * ld-arm/arm-lib-plt-2a.s, ld-arm/arm-lib-plt-2b.s, ld-arm/arm-lib-plt-2.dd, ld-arm/arm-lib-plt-2.rd: New tests. * ld-arm/arm-elf.exp: Run them.
Diffstat (limited to 'ld/testsuite/ld-arm/arm-lib-plt-2a.s')
-rw-r--r--ld/testsuite/ld-arm/arm-lib-plt-2a.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/arm-lib-plt-2a.s b/ld/testsuite/ld-arm/arm-lib-plt-2a.s
new file mode 100644
index 0000000..6c8edac
--- /dev/null
+++ b/ld/testsuite/ld-arm/arm-lib-plt-2a.s
@@ -0,0 +1,5 @@
+ .globl foo
+ .type foo,%function
+foo:
+ mov pc,lr
+ .size foo,.-foo