Merge remote-tracking branch 'github/nasm-2.15.xx'
[nasm.git] / test / elf_visibility.asm
blobb1dc83cb56615858c2d5df451c7f001a5c52756f
1 global foo:(foo_end - foo)
2 global foo_hidden:function hidden
3 global foo_protected:function protected
4 global foo_internal:function internal
5 global foo_weak:function weak
6 global foo_hidden_weak:function hidden weak
8 extern strong_ref, weak_ref:weak, unused_ref
9 extern weak_object_ref:weak object
10 required required_ref
12 SECTION .text align=16
14 foo:
15 nop
16 foo_hidden:
17 nop
18 foo_protected:
19 nop
20 foo_internal:
21 nop
22 foo_weak:
23 ret
24 foo_hidden_weak:
25 mov eax,weak_ref
26 mov eax,strong_ref
27 mov eax,weak_object_ref
28 foo_label:
29 ret
30 foo_end: