Mark lua setjmp/longjmp for powerpc weak

Linux already defines setjmp/longjmp for powerpc, which leads to
duplicate symbols in a statically linked build.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Sterlng Jensen <sterlingjensen@users.noreply.github.com>
Closes #10795
This commit is contained in:
sterlingjensen 2020-08-25 12:32:49 -05:00 committed by GitHub
parent 94dac3e880
commit 87688b686b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@
#define ENTRY(name) \ #define ENTRY(name) \
.align 2 ; \ .align 2 ; \
.type name,@function; \ .type name,@function; \
.globl name; \ .weak name; \
name: name:
#else /* PPC64_ELF_ABI_v1 */ #else /* PPC64_ELF_ABI_v1 */
@ -65,8 +65,8 @@ name:
#define GLUE(a,b) XGLUE(a,b) #define GLUE(a,b) XGLUE(a,b)
#define ENTRY(name) \ #define ENTRY(name) \
.align 2 ; \ .align 2 ; \
.globl name; \ .weak name; \
.globl GLUE(.,name); \ .weak GLUE(.,name); \
.pushsection ".opd","aw"; \ .pushsection ".opd","aw"; \
name: \ name: \
.quad GLUE(.,name); \ .quad GLUE(.,name); \
@ -83,8 +83,8 @@ GLUE(.,name):
#define ENTRY(name) \ #define ENTRY(name) \
.text; \ .text; \
.p2align 4; \ .p2align 4; \
.globl name; \ .weak name; \
.type name,@function; \ .type name,@function; \
name: name:
#endif /* __powerpc64__ */ #endif /* __powerpc64__ */