dev-lang/swift: add 6.0.1

Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
Itai Ferber
2024-10-12 15:09:07 -04:00
parent 2a36ac399b
commit 282216f801
7 changed files with 600 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# The Swift backtracer needs to get CPU context information when producing
# backtraces, which is necessarily written in assembly. Because it tries to be
# portable, it doesn't include a note indicating that the assembled binary
# doesn't require an executable stack; we need to include one explicitly to turn
# it off.
--- a/swift/stdlib/public/Backtracing/get-cpu-context.S
+++ b/swift/stdlib/public/Backtracing/get-cpu-context.S
@@ -140,3 +140,6 @@ FN(_swift_get_cpu_context):
bx lr
#endif
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif