From b7c41230322051912d979e132c52100158745b73 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 2 Oct 2019 20:11:35 +0000 Subject: [PATCH] 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 --- gcc/go/gofrontend/MERGE | 2 +- libgo/runtime/go-context.S | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index f7c45eeb0d3..54c682a8b78 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -07faafda5fbd66a710153814f30d93c91461e7cb +a3aef6b6df932ea6c7094d074695bc0b033a3d17 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/runtime/go-context.S b/libgo/runtime/go-context.S index 8beeebfb85a..170bced1818 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 -- 2.30.2