summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-10 16:25:49 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:32 -0400
commit762cf6cdb36ec4403d833c85371a4df686e0e58d (patch)
tree53482428fc237522b241015b50878c8ae137c98a
parentfe61a7aa53e68e8a17b5eb8d502e6fa314139ced (diff)
downloadmusl-762cf6cdb36ec4403d833c85371a4df686e0e58d.tar.gz
use hidden visibility for sh __unmapself backends
-rw-r--r--src/thread/sh/__unmapself.c4
-rw-r--r--src/thread/sh/__unmapself_mmu.s1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/thread/sh/__unmapself.c b/src/thread/sh/__unmapself.c
index 719392a6..35fb3c92 100644
--- a/src/thread/sh/__unmapself.c
+++ b/src/thread/sh/__unmapself.c
@@ -1,7 +1,7 @@
#include "pthread_impl.h"
-void __unmapself_sh_mmu(void *, size_t);
-void __unmapself_sh_nommu(void *, size_t);
+hidden void __unmapself_sh_mmu(void *, size_t);
+hidden void __unmapself_sh_nommu(void *, size_t);
#if !defined(__SH3__) && !defined(__SH4__)
#define __unmapself __unmapself_sh_nommu
diff --git a/src/thread/sh/__unmapself_mmu.s b/src/thread/sh/__unmapself_mmu.s
index 0161d53d..688087b8 100644
--- a/src/thread/sh/__unmapself_mmu.s
+++ b/src/thread/sh/__unmapself_mmu.s
@@ -1,5 +1,6 @@
.text
.global __unmapself_sh_mmu
+.hidden __unmapself_sh_mmu
.type __unmapself_sh_mmu, @function
__unmapself_sh_mmu:
mov #91, r3 ! SYS_munmap