mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 12:08:43 -04:00
16 lines
597 B
Diff
16 lines
597 B
Diff
# 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
|