aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-10-02 20:11:35 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-10-02 20:11:35 +0000
commitb7c41230322051912d979e132c52100158745b73 (patch)
treecfc66690b171aa8dd9eb989d2272ba46c9e1dfc2 /libgo
parentb830c28b56fdc3f4b4555200278218b4b49022d2 (diff)
downloadgcc-b7c41230322051912d979e132c52100158745b73.zip
gcc-b7c41230322051912d979e132c52100158745b73.tar.gz
gcc-b7c41230322051912d979e132c52100158745b73.tar.bz2
runtime: mark go-context.S as no-executable-stack and split-stack supported
The .note.GNU-stack section tells the linker that this object does not require an executable stack. The .note.GNU-split-stack section tells the linker that functions in this object can be called directly by split-stack functions, without require a large stack. The .note.GNU-no-split-stack section tells the linker that functions in this object do not have a split-stack prologue. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/198440 From-SVN: r276488
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/go-context.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/runtime/go-context.S b/libgo/runtime/go-context.S
index 8beeebf..170bced 100644
--- a/libgo/runtime/go-context.S
+++ b/libgo/runtime/go-context.S
@@ -66,4 +66,8 @@ __go_makecontext:
ret
+ .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-split-stack,"",@progbits
+ .section .note.GNU-no-split-stack,"",@progbits
+
#endif