Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba73a67

Browse files
committed
Update FFI_HIDDEN() to use .private_extern on Apple platforms and use the macro where appropriate
Fix issue #439 Signed-off-by: Jeremy Huddleston Sequoia <[email protected]>
1 parent 65da63a commit ba73a67

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,11 @@ AM_CONDITIONAL(BUILD_DOCS, [test x$enable_docs = xyes])
292292
AH_BOTTOM([
293293
#ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
294294
#ifdef LIBFFI_ASM
295+
#ifdef __APPLE__
296+
#define FFI_HIDDEN(name) .private_extern name
297+
#else
295298
#define FFI_HIDDEN(name) .hidden name
299+
#endif
296300
#else
297301
#define FFI_HIDDEN __attribute__ ((visibility ("hidden")))
298302
#endif

src/arm/sysv.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585

8686
#define ARM_FUNC_START(name) \
8787
.globl CNAME(name); \
88-
.private_extern CNAME(name); \
8988
FFI_HIDDEN(CNAME(name)); \
9089
ARM_FUNC_START_LOCAL(name)
9190

src/x86/sysv.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ ENDF(C(ffi_closure_raw_THISCALL))
794794
# define COMDAT(X) \
795795
.section __TEXT,__text,coalesced,pure_instructions; \
796796
.weak_definition X; \
797-
.private_extern X
797+
FFI_HIDDEN(X)
798798
#elif defined __ELF__ && !(defined(__sun__) && defined(__svr4__))
799799
# define COMDAT(X) \
800800
.section .text.X,"axG",@progbits,X,comdat; \

0 commit comments

Comments
 (0)