projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a7cac9
)
Move the alias definition of unw_getcontext to within !defined(__USING_SJLJ_EXCEPTIONS__)
author
Martin Storsjo
<martin@martin.st>
Thu, 4 Apr 2019 17:50:14 +0000
(17:50 +0000)
committer
Martin Storsjo
<martin@martin.st>
Thu, 4 Apr 2019 17:50:14 +0000
(17:50 +0000)
For builds with SJLJ, there is no __unw_getcontext symbol. On Windows,
the weak alias macro also expands to a dllexport directive, which fails
if the symbol doesn't exist.
Differential Revision: https://reviews.llvm.org/D60251
llvm-svn: 357711
libunwind/src/UnwindRegistersSave.S
patch
|
blob
|
history
diff --git
a/libunwind/src/UnwindRegistersSave.S
b/libunwind/src/UnwindRegistersSave.S
index
7db023c
..
c2983e7
100644
(file)
--- a/
libunwind/src/UnwindRegistersSave.S
+++ b/
libunwind/src/UnwindRegistersSave.S
@@
-972,8
+972,9
@@
DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
jmp %o7
clr %o0 // return UNW_ESUCCESS
#endif
-#endif /* !defined(__USING_SJLJ_EXCEPTIONS__) */
WEAK_ALIAS(__unw_getcontext, unw_getcontext)
+#endif /* !defined(__USING_SJLJ_EXCEPTIONS__) */
+
NO_EXEC_STACK_DIRECTIVE