aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mmix/x.s
blob: e7222b1db0adf264286e442d4bb96410a5d97b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;# Main file, x.s, with the program (_start) referring to two
;# linkonce functions fn and fn2.  The functions fn and fn2 are
;# supposed to be equivalent of C++ template instantiations; the
;# main file instantiates fn.  An exception-table-lookalike entry
;# refers to fn via a local label.  We use .gcc_except_table as we
;# can't be bothered to produce syntactically valid .eh_frame contents
;# and there's no option to turn off warning messages for invalid
;# contents.

 .text
 .global _start
_start:
 .long fn
 .long fn2

 .section .gnu.linkonce.t.fn,"ax",@progbits
 .weak fn
 .type fn,@function
fn:
L:a:
 .long 1
 .long 2
L:b:
 .size fn,L:b-L:a

 .section .gcc_except_table,"aw",@progbits
 .long 2
 .long L:a
 .long L:b-L:a