ppc, ppc64: do not use ALIAS for libucontext_swapcontext

arm_linker_fix
Daniel Kolesa 2021-01-08 14:55:27 +01:00
parent d592961b1a
commit efa6464e41
2 changed files with 8 additions and 2 deletions

View File

@ -14,7 +14,10 @@
ALIAS(swapcontext, __libucontext_swapcontext)
ALIAS(__swapcontext, __libucontext_swapcontext)
ALIAS(libucontext_swapcontext, __libucontext_swapcontext)
/* make sure this is visible regardless of EXPORT_UNPREFIXED */
.weak libucontext_swapcontext
libucontext_swapcontext = __libucontext_swapcontext
FUNC(__libucontext_swapcontext)
li 0, 249 # SYS_swapcontext

View File

@ -14,7 +14,10 @@
ALIAS(swapcontext, __libucontext_swapcontext)
ALIAS(__swapcontext, __libucontext_swapcontext)
ALIAS(libucontext_swapcontext, __libucontext_swapcontext)
/* make sure this is visible regardless of EXPORT_UNPREFIXED */
.weak libucontext_swapcontext
libucontext_swapcontext = __libucontext_swapcontext
FUNC(__libucontext_swapcontext)
addis 2, 12, .TOC.-__libucontext_swapcontext@ha