From b0d1de6242271c0332ceefa40682438cd07f3592 Mon Sep 17 00:00:00 2001 From: Kate F Date: Fri, 28 Jun 2024 15:36:26 +0100 Subject: [PATCH] Quieten GNU ld about something I don't understand. --- src/retest/runner.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/retest/runner.c b/src/retest/runner.c index c5c2cde82..7d3ddad4a 100644 --- a/src/retest/runner.c +++ b/src/retest/runner.c @@ -242,8 +242,12 @@ compile(enum implementation impl, return 0; } - if (0 != systemf("%s %s -shared %s -o %s", + if (0 != systemf("%s %s -shared %s %s -o %s", cc ? cc : "gcc", cflags ? cflags : "", + + // for "missing .note.GNU-stack section implies executable stack" + "-Wl,-z,noexecstack", + tmp_o, tmp_so)) { return 0;