aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/movw-shared-1.d
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-04-30 00:01:11 +0000
committerJoseph Myers <joseph@codesourcery.com>2009-04-30 00:01:11 +0000
commit96c23d596607cc7143e0ea1f4fee260977aec18b (patch)
treea6aaee3c724f2263c5716d07fd5aeee75d76c6f5 /ld/testsuite/ld-arm/movw-shared-1.d
parent00ee36855d9d2c2258f983e3ada347ed978a0552 (diff)
downloadgdb-96c23d596607cc7143e0ea1f4fee260977aec18b.zip
gdb-96c23d596607cc7143e0ea1f4fee260977aec18b.tar.gz
gdb-96c23d596607cc7143e0ea1f4fee260977aec18b.tar.bz2
bfd:
* elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute MOVW and MOVT relocations in a shared library link. ld/testsuite: * ld-arm/movw-shared-1.d, ld-arm/movw-shared-1.s, ld-arm/movw-shared-2.d, ld-arm/movw-shared-2.s, ld-arm/movw-shared-3.d, ld-arm/movw-shared-3.s, ld-arm/movw-shared-4.d, ld-arm/movw-shared-4.s: New tests. * ld-arm/arm-elf.exp: Run these new tests.
Diffstat (limited to 'ld/testsuite/ld-arm/movw-shared-1.d')
-rw-r--r--ld/testsuite/ld-arm/movw-shared-1.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/movw-shared-1.d b/ld/testsuite/ld-arm/movw-shared-1.d
new file mode 100644
index 0000000..5a05818
--- /dev/null
+++ b/ld/testsuite/ld-arm/movw-shared-1.d
@@ -0,0 +1,4 @@
+#name: MOVW/MOVT shared libraries test 1
+#source: movw-shared-1.s
+#ld: -shared
+#error: .*: relocation R_ARM_MOVW_ABS_NC against `a' can not be used when making a shared object; recompile with -fPIC