aboutsummaryrefslogtreecommitdiffstats
path: root/executor/gen_linux_amd64.go
diff options
context:
space:
mode:
authorSpace Meyer <spm@google.com>2023-04-12 12:03:17 +0200
committerDmitry Vyukov <dvyukov@google.com>2023-04-12 13:09:12 +0200
commit75e2c2fabf2aeb95cfa2822e4e9cdff8978b7b38 (patch)
tree08db5ba5ff33cc42a65992f4fca05e1ae447929c /executor/gen_linux_amd64.go
parentd4d447cd780753901f9e00aa246cc835458a8f06 (diff)
executor: mark amd64 kvm_gen.cc stack nonexecutable
Without this change `go generate ./executor` on gcc 12.2.0 gives: /usr/bin/ld: warning: /tmp/ccmfWMO4.o: missing .note.GNU-stack section implies executable stack /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker This does not change the generated code in kvm_amd64.S.h
Diffstat (limited to 'executor/gen_linux_amd64.go')
-rw-r--r--executor/gen_linux_amd64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/gen_linux_amd64.go b/executor/gen_linux_amd64.go
index dd68a198b..c552779b8 100644
--- a/executor/gen_linux_amd64.go
+++ b/executor/gen_linux_amd64.go
@@ -2,6 +2,6 @@
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// nolint: lll
-//go:generate bash -c "gcc -DGOARCH_$GOARCH=1 kvm_gen.cc kvm_amd64.S -o kvm_gen && ./kvm_gen > kvm_amd64.S.h && rm ./kvm_gen"
+//go:generate bash -c "gcc -Wa,--noexecstack -DGOARCH_$GOARCH=1 kvm_gen.cc kvm_amd64.S -o kvm_gen && ./kvm_gen > kvm_amd64.S.h && rm ./kvm_gen"
package executor