aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/gc-thumb.s
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2011-01-17 16:36:15 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2011-01-17 16:36:15 +0000
commit1e81e12b2c81710f5b098e18d5146d6704100913 (patch)
tree64e377b08c7566936b5738a81b5ad8d8d21dfa12 /ld/testsuite/ld-arm/gc-thumb.s
parentf55af66d6ed6e6ad47757c5fff7ab5df1284ce33 (diff)
downloadgdb-1e81e12b2c81710f5b098e18d5146d6704100913.zip
gdb-1e81e12b2c81710f5b098e18d5146d6704100913.tar.gz
gdb-1e81e12b2c81710f5b098e18d5146d6704100913.tar.bz2
bfd/
* elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered dynamic relocs for the removed section. ld/testsuite/ * ld-arm/gc-thumb-lib.s, ld-arm/gc-thumb.s, ld-arm/gc-thumb.d: New test. * ld-arm/arm-elf.exp: Run it.
Diffstat (limited to 'ld/testsuite/ld-arm/gc-thumb.s')
-rw-r--r--ld/testsuite/ld-arm/gc-thumb.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/gc-thumb.s b/ld/testsuite/ld-arm/gc-thumb.s
new file mode 100644
index 0000000..4051f8d
--- /dev/null
+++ b/ld/testsuite/ld-arm/gc-thumb.s
@@ -0,0 +1,11 @@
+ .arch armv7-a
+ .syntax unified
+ .text
+ .globl _start
+_start:
+ mov pc,lr
+
+ .section .text.foo,"ax",%progbits
+ .thumb
+ movw r0,#:lower16:foo-.
+ movt r0,#:upper16:foo-.