Skip to content

Commit dcc7db1

Browse files
committed
Fix libFoundation.so being flagged as requiring executable stack
libFoundation.so is flagged as requiring an executable stack on Linux, although it does not. This is due to GNU as behavior. Please see discussion at https://bugs.swift.org/browse/SR-2700?jql=text%20~%20%22executable%20stack%22 This was already intended to be solved by #649, but did not work as intended in Ubuntu. Checking for __GNUC__ in addition resolves the issue.
1 parent d6f7085 commit dcc7db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/Base.subproj/CFAsmMacros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define CONCAT_EXPANDED(a,b) CONCAT(a,b)
1515
#define _C_LABEL(name) CONCAT_EXPANDED(__USER_LABEL_PREFIX__,name)
1616

17-
#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__)
17+
#if defined(__GNU__) || defined(__GNUC__) || defined(__ANDROID__) || defined(__FreeBSD__)
1818
#define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits
1919
#else
2020
#define NO_EXEC_STACK_DIRECTIVE

0 commit comments

Comments
 (0)