2019-09-13 02:27:50 +08:00
|
|
|
global foo:(foo_end - foo)
|
2018-06-19 02:37:17 +08:00
|
|
|
global foo_hidden:function hidden
|
2019-09-13 02:27:50 +08:00
|
|
|
global foo_protected:function protected
|
|
|
|
global foo_internal:function internal
|
|
|
|
global foo_weak:function weak
|
|
|
|
global foo_hidden_weak:function hidden weak
|
|
|
|
|
2019-09-13 08:21:03 +08:00
|
|
|
extern strong_ref, weak_ref:weak, unused_ref
|
2019-09-13 08:45:11 +08:00
|
|
|
extern weak_object_ref:weak object
|
2019-09-13 08:21:03 +08:00
|
|
|
required required_ref
|
2018-06-19 02:37:17 +08:00
|
|
|
|
|
|
|
SECTION .text align=16
|
|
|
|
|
|
|
|
foo:
|
2019-09-13 02:27:50 +08:00
|
|
|
nop
|
2018-06-19 02:37:17 +08:00
|
|
|
foo_hidden:
|
2019-09-13 02:27:50 +08:00
|
|
|
nop
|
|
|
|
foo_protected:
|
|
|
|
nop
|
|
|
|
foo_internal:
|
|
|
|
nop
|
|
|
|
foo_weak:
|
|
|
|
ret
|
|
|
|
foo_hidden_weak:
|
|
|
|
mov eax,weak_ref
|
|
|
|
mov eax,strong_ref
|
2019-09-13 08:45:11 +08:00
|
|
|
mov eax,weak_object_ref
|
2018-06-19 02:37:17 +08:00
|
|
|
foo_label:
|
2019-09-13 02:27:50 +08:00
|
|
|
ret
|
|
|
|
foo_end:
|