aboutsummaryrefslogtreecommitdiffstats
path: root/test/elf_visibility.asm
blob: 8098e227934a4a3bb5210e27f5f1dcd757fd4cde (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
global foo:(foo_end - foo)
global foo_hidden:function hidden
global foo_protected:function protected
global foo_internal:function internal
global foo_weak:function weak
global foo_hidden_weak:function hidden weak

extern strong_ref, weak_ref:weak

SECTION .text  align=16

foo:
	nop
foo_hidden:
	nop
foo_protected:
	nop
foo_internal:
	nop
foo_weak:
	ret
foo_hidden_weak:
	mov eax,weak_ref
	mov eax,strong_ref
foo_label:
	ret
foo_end: