aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris/libdso-12c.d
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-12-15 01:36:21 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-12-15 01:36:21 +0000
commitdeddc83b38f098c979fa1022174917a866aac1c2 (patch)
tree37d549de61e59caa47f59b6d3f46f43cb953819f /ld/testsuite/ld-cris/libdso-12c.d
parent6c759646f88442eabcebca2c765382a0c7fc17ff (diff)
downloadgdb-deddc83b38f098c979fa1022174917a866aac1c2.zip
gdb-deddc83b38f098c979fa1022174917a866aac1c2.tar.gz
gdb-deddc83b38f098c979fa1022174917a866aac1c2.tar.bz2
* ld-cris/hidedsofns2468, ld-cris/libdso-12b.d,
ld-cris/libdso-12c.d, ld-cris/libdso-1b.d, ld-cris/dso-1b.s: New tests.
Diffstat (limited to 'ld/testsuite/ld-cris/libdso-12c.d')
-rw-r--r--ld/testsuite/ld-cris/libdso-12c.d41
1 files changed, 41 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/libdso-12c.d b/ld/testsuite/ld-cris/libdso-12c.d
new file mode 100644
index 0000000..37eab56
--- /dev/null
+++ b/ld/testsuite/ld-cris/libdso-12c.d
@@ -0,0 +1,41 @@
+#source: expdyn1.s
+#source: dsov32-1.s
+#source: dsov32-2.s
+#source: dso-1.s
+#as: --pic --no-underscore --march=v32 --em=criself
+#ld: --shared -m crislinux --version-script $srcdir/$subdir/hidedsofns2468
+#objdump: -s -T
+
+# Like libdso-12b.d, but dsofn is defined and the two called functions
+# are forced local using a linker script. There should just be the
+# GOT relocation for expobj in the DSO.
+
+.*: file format elf32-cris
+
+DYNAMIC SYMBOL TABLE:
+#...
+0+202 g[ ]+DF \.text 0+2 Base[ ]+expfn
+0+22bc g[ ]+DO \.data 0+4 Base[ ]+expobj
+#...
+0+204 g[ ]+DF \.text 0+8 Base[ ]+dsofn3
+#...
+Contents of section \.rela\.dyn:
+ 01f4 b8220000 0a040000 00000000 .*
+Contents of section \.text:
+ 0200 b005b005 bfbe1c00 0000b005 7f0da020 .*
+ 0210 00005f0d 0c00bfbe f6ffffff b0050000 .*
+ 0220 b0050000 .*
+Contents of section .dynamic:
+ 2224 04000000 94000000 05000000 70010000 .*
+ 2234 06000000 d0000000 0a000000 37000000 .*
+ 2244 0b000000 10000000 07000000 f4010000 .*
+ 2254 08000000 0c000000 09000000 0c000000 .*
+ 2264 fcffff6f bc010000 fdffff6f 02000000 .*
+ 2274 f0ffff6f a8010000 00000000 00000000 .*
+ 2284 00000000 00000000 00000000 00000000 .*
+ 2294 00000000 00000000 00000000 00000000 .*
+ 22a4 00000000 00000000 .*
+Contents of section \.got:
+ 22ac 24220000 00000000 00000000 00000000 .*
+Contents of section \.data:
+ 22bc 00000000 .*