summaryrefslogtreecommitdiff
path: root/test/dot_s/function-data-sections.s
blob: 68942b1afa02c6c2764641f61d8091a21cdebf7d (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
	.text
	.section	.text.foo,"ax",@progbits
	.globl	foo
	.type	foo,@function
foo:
	return
func_end0:
	.size	foo, func_end0-foo

	.section	.text.bar,"ax",@progbits
	.globl	bar
	.type	bar,@function
bar:
	.param  	i32
	.result 	i32
	return  	$0
func_end1:
	.size	bar, func_end1-bar

	.section	.text.qux,"ax",@progbits
	.globl	qux
	.type	qux,@function
qux:
	.param  	f64, f64
	.result 	f64
	f64.add 	$push0=, $0, $1
	return  	$pop0
func_end2:
	.size	qux, func_end2-qux

	.type	aaa,@object
	.section	.bss.aaa,"aw",@nobits
	.globl	aaa
	.align	2
aaa:
	.int32	0
	.size	aaa, 4

	.type	bbb,@object
	.section	.data.bbb,"aw",@progbits
	.globl	bbb
	.align	2
bbb:
	.int32	1
	.size	bbb, 4

	.type	ccc,@object
	.section	.data.ccc,"aw",@progbits
	.globl	ccc
	.align	2
ccc:
	.int32	1075000115
	.size	ccc, 4