diff options
author | Martin Storsjo <martin@martin.st> | 2018-12-11 07:34:14 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2018-12-11 07:34:14 +0000 |
commit | 0731f1a06eb8d6f1d6ab258e8019b49d2dff8af3 (patch) | |
tree | 438ac9112a57882aab3b1f106f395d997b712e0f | |
parent | 395b27b68c5453222378bc5fe4dab4c6db89816a (diff) | |
download | libunwind_llvm-0731f1a06eb8d6f1d6ab258e8019b49d2dff8af3.tar.gz |
Don't export assembly functions when function visibility annotations are disabled
Patch by Peiyuan Song!
Differential Revision: https://reviews.llvm.org/D55537
git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@348832 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | src/assembly.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/assembly.h b/src/assembly.h index e98ad40..cc22c79 100644 --- a/src/assembly.h +++ b/src/assembly.h @@ -76,7 +76,11 @@ .section .drectve,"yn" SEPARATOR \ .ascii "-export:", #name, "\0" SEPARATOR \ .text +#if defined(_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS) +#define EXPORT_SYMBOL(name) +#else #define EXPORT_SYMBOL(name) EXPORT_SYMBOL2(name) +#endif #define HIDDEN_SYMBOL(name) #define NO_EXEC_STACK_DIRECTIVE |