aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris/libdso-13.d
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2004-11-04 15:04:05 +0000
committerHans-Peter Nilsson <hp@axis.com>2004-11-04 15:04:05 +0000
commit1f02b94b933456f526f294831af1e32e44f50381 (patch)
tree3de0b930a7f8ace0a8dd859b3d6efa67805bb237 /ld/testsuite/ld-cris/libdso-13.d
parent05e6b3155d891aa0883c4690c62d28009afb940a (diff)
downloadgdb-1f02b94b933456f526f294831af1e32e44f50381.zip
gdb-1f02b94b933456f526f294831af1e32e44f50381.tar.gz
gdb-1f02b94b933456f526f294831af1e32e44f50381.tar.bz2
* ld-elf/merge.d: xfail crisv32-*-*.
* ld-cris/dsov32-1.s, ld-cris/dsov32-2.s, ld-cris/dsov32-3.s, ld-cris/dsov32-4.s, ld-cris/libdso-10.d, ld-cris/libdso-11.d, ld-cris/libdso-12.d, ld-cris/libdso-13.d, ld-cris/libdso-14.d, ld-cris/move-1.s, ld-cris/pv32-1.d, ld-cris/pv32.s, ld-cris/start1.s, ld-cris/v10-v32.d, ld-cris/v10-va.d, ld-cris/v32-ba-1.d, ld-cris/v32-ba-1.s, ld-cris/v32-bin-1.d, ld-cris/v32-bin-1.s, ld-cris/v32-v10.d, ld-cris/v32-va.d, ld-cris/va-v10.d, ld-cris/va-v32.d: New tests. * ld-cris/ldsym1.d: Adjust for change in linker script.
Diffstat (limited to 'ld/testsuite/ld-cris/libdso-13.d')
-rw-r--r--ld/testsuite/ld-cris/libdso-13.d28
1 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/libdso-13.d b/ld/testsuite/ld-cris/libdso-13.d
new file mode 100644
index 0000000..d86dae9
--- /dev/null
+++ b/ld/testsuite/ld-cris/libdso-13.d
@@ -0,0 +1,28 @@
+#source: dso-1.s
+#source: dsov32-3.s
+#as: --pic --no-underscore --march=v32
+#ld: --shared -m crislinux
+#readelf: -d -r
+#error: relocation R_CRIS_32_PCREL should not be used in a shared object; recompile with -fPIC
+
+# FIXME: Have a textrel-enabling linker option. Split out the
+# expected readelf output into a separate test using that option.
+# Check that a TEXTREL reloc is correctly generated for PCREL
+# relocations.
+
+Dynamic segment at offset 0x240 contains 10 entries:
+ Tag[ ]+Type[ ]+Name/Value
+ 0x0+4 \(HASH\)[ ]+0x94
+ 0x0+5 \(STRTAB\)[ ]+0x1e8
+ 0x0+6 \(SYMTAB\)[ ]+0xe8
+ 0x0+a \(STRSZ\)[ ]+47 \(bytes\)
+ 0x0+b \(SYMENT\)[ ]+16 \(bytes\)
+ 0x0+7 \(RELA\)[ ]+0x218
+ 0x0+8 \(RELASZ\)[ ]+12 \(bytes\)
+ 0x0+9 \(RELAENT\)[ ]+12 \(bytes\)
+ 0x0+16 \(TEXTREL\)[ ]+0x0
+ 0x0+ \(NULL\)[ ]+0x0
+
+Relocation section '\.rela\.text' at offset 0x218 contains 1 entries:
+ Offset[ ]+Info[ ]+Type[ ]+Sym\.Value Sym\. Name \+ Addend
+0+22a 0+f06 R_CRIS_32_PCREL[ ]+0+224[ ]+dsofn \+ 6