diff options
author | ed <ed@FreeBSD.org> | 2010-11-11 16:53:25 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-11-11 16:53:25 +0000 |
commit | 5f1c2ebcce278ea22b2818f58bef8a236c8b9ebe (patch) | |
tree | b44616ee43ee1914cda25f093e3c2260cf9f97e7 /contrib/compiler-rt | |
parent | 1b04dcdfa7b5e42e464878eca0bbb3236498629b (diff) | |
download | FreeBSD-src-5f1c2ebcce278ea22b2818f58bef8a236c8b9ebe.zip FreeBSD-src-5f1c2ebcce278ea22b2818f58bef8a236c8b9ebe.tar.gz |
Set symbol visibility to hidden.
Not doing so may cause all sorts of random libraries to expose
libcompiler_rt's functions, which should of course not be done.
Discussed with: kan, kib
Diffstat (limited to 'contrib/compiler-rt')
-rw-r--r-- | contrib/compiler-rt/lib/assembly.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/compiler-rt/lib/assembly.h b/contrib/compiler-rt/lib/assembly.h index c2d5a34..c124e19 100644 --- a/contrib/compiler-rt/lib/assembly.h +++ b/contrib/compiler-rt/lib/assembly.h @@ -33,7 +33,7 @@ #ifdef VISIBILITY_HIDDEN #define DEFINE_COMPILERRT_FUNCTION(name) \ .globl SYMBOL_NAME(name) SEPARATOR \ - .private_extern SYMBOL_NAME(name) SEPARATOR \ + .hidden SYMBOL_NAME(name) SEPARATOR \ SYMBOL_NAME(name): #else #define DEFINE_COMPILERRT_FUNCTION(name) \ @@ -43,12 +43,12 @@ #define DEFINE_COMPILERRT_PRIVATE_FUNCTION(name) \ .globl SYMBOL_NAME(name) SEPARATOR \ - .private_extern SYMBOL_NAME(name) SEPARATOR \ + .hidden SYMBOL_NAME(name) SEPARATOR \ SYMBOL_NAME(name): #define DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(name) \ .globl name SEPARATOR \ - .private_extern name SEPARATOR \ + .hidden name SEPARATOR \ name: #endif /* COMPILERRT_ASSEMBLY_H */ |