aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2018-06-18 11:37:17 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2018-06-18 11:37:17 -0700
commit1bcc1e012aea5435150d8903328703d14bd9efb5 (patch)
treed1a30b5b5dd0913c81ee61eeb93fe2cd9d2f2ba1 /test
parentf7be8b3253b90ed590c7dc862c402da5e8ea08c2 (diff)
downloadnasm-1bcc1e012aea5435150d8903328703d14bd9efb5.tar.gz
nasm-1bcc1e012aea5435150d8903328703d14bd9efb5.tar.xz
nasm-1bcc1e012aea5435150d8903328703d14bd9efb5.zip
test: test for ELF symbol visibility
Add test for declaring ELF visibility. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/elf_visibility.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/elf_visibility.asm b/test/elf_visibility.asm
new file mode 100644
index 00000000..4874b62d
--- /dev/null
+++ b/test/elf_visibility.asm
@@ -0,0 +1,10 @@
+global foo
+global foo_hidden:function hidden
+
+SECTION .text align=16
+
+foo:
+foo_hidden:
+foo_label:
+ret
+