aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/elf_visibility.asm23
1 files changed, 20 insertions, 3 deletions
diff --git a/test/elf_visibility.asm b/test/elf_visibility.asm
index 4874b62d..8098e227 100644
--- a/test/elf_visibility.asm
+++ b/test/elf_visibility.asm
@@ -1,10 +1,27 @@
-global foo
+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
-
+ ret
+foo_end: