aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-linkonce/zeroehl32.d
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-09-29 13:01:17 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-09-29 13:01:17 +0000
commit8e13f7b1f9e7a108fb134d24e0b1bc226f01c4c5 (patch)
treed88f61592612ae70278c3f6fe6b4db8da6dfdb31 /ld/testsuite/ld-linkonce/zeroehl32.d
parent4818e05fe52eb069d4ae6b306a31b5ecf0e1a6fd (diff)
downloadgdb-8e13f7b1f9e7a108fb134d24e0b1bc226f01c4c5.zip
gdb-8e13f7b1f9e7a108fb134d24e0b1bc226f01c4c5.tar.gz
gdb-8e13f7b1f9e7a108fb134d24e0b1bc226f01c4c5.tar.bz2
* ld-linkonce/linkonce.exp: New file.
* ld-linkonce/x.s, ld-linkonce/y.s, ld-linkonce/zeroeh.ld, ld-linkonce/zeroehl32.d: New test.
Diffstat (limited to 'ld/testsuite/ld-linkonce/zeroehl32.d')
-rw-r--r--ld/testsuite/ld-linkonce/zeroehl32.d19
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-linkonce/zeroehl32.d b/ld/testsuite/ld-linkonce/zeroehl32.d
new file mode 100644
index 0000000..ce91895
--- /dev/null
+++ b/ld/testsuite/ld-linkonce/zeroehl32.d
@@ -0,0 +1,19 @@
+#source: x.s
+#source: y.s
+#ld: -Ttext 0xa00 -T $srcdir/$subdir/zeroeh.ld
+#objdump: -s
+#target: cris-*-elf cris-*-linux* i?86-*-elf i?86-*-linux*
+#xfail: *-*-*
+
+# The word at address 201c, for the linkonce-excluded section, must be zero.
+
+.*: file format elf32.*
+
+Contents of section \.text:
+ 0a00 080a0000 100a0000 01000000 02000000 .*
+ 0a10 03000000 .*
+Contents of section \.eh_frame:
+ 2000 02000000 080a0000 08000000 07000000 .*
+ 2010 100a0000 04000000 66600000 00000000 .*
+ 2020 04000000 .*
+#pass