aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-linkonce/y.s
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/y.s
parent4818e05fe52eb069d4ae6b306a31b5ecf0e1a6fd (diff)
downloadfsf-binutils-gdb-8e13f7b1f9e7a108fb134d24e0b1bc226f01c4c5.zip
fsf-binutils-gdb-8e13f7b1f9e7a108fb134d24e0b1bc226f01c4c5.tar.gz
fsf-binutils-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/y.s')
-rw-r--r--ld/testsuite/ld-linkonce/y.s33
1 files changed, 33 insertions, 0 deletions
diff --git a/ld/testsuite/ld-linkonce/y.s b/ld/testsuite/ld-linkonce/y.s
new file mode 100644
index 0000000..b8ae3d2
--- /dev/null
+++ b/ld/testsuite/ld-linkonce/y.s
@@ -0,0 +1,33 @@
+;# Library file y.s has linkonce entries for fn and fn2. Note
+;# that this version of fn has different code, as if compiled
+;# with different optimization flags than the one in x.s (not
+;# important for this test, though). The reference from
+;# .eh_frame to the linkonce-excluded fn2 must be zero, or g++
+;# EH will not work.
+
+ .section .gnu.linkonce.t.fn2,"ax",@progbits
+ .weak fn2
+ .type fn2,@function
+fn2:
+.Lc:
+ .long 3
+.Ld:
+ .size fn2,.Ld-.Lc
+
+ .section .gnu.linkonce.t.fn,"ax",@progbits
+ .weak fn
+ .type fn,@function
+fn:
+.Le:
+ .long 4
+.Lf:
+ .size fn,.Lf-.Le
+
+ .section .eh_frame,"aw",@progbits
+ .long 7
+ .long .Lc
+ .long .Ld-.Lc
+
+ .long 0x6066
+ .long .Le
+ .long .Lf-.Le