]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86emul/test: suppress GNU ld 2.39 warning about RWX load segments
authorJan Beulich <jbeulich@suse.com>
Tue, 14 Mar 2023 09:42:51 +0000 (10:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Mar 2023 09:42:51 +0000 (10:42 +0100)
Commit 68f5aac012b9 ("build: suppress future GNU ld warning about RWX
load segments") didn't quite cover all the cases: I missed ones in the
building of the test code blobs. Clone the workaround to the helper
Makefile in question, kind of open-coding the hypervisor build system's
ld-option macro.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
tools/tests/x86_emulator/testcase.mk

index d4aa82e3f342e5998d985aa984b42a214934541e..fc95e24589f54c656235108e1dfad59c72e65486 100644 (file)
@@ -6,6 +6,8 @@ $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
 CFLAGS += -fno-builtin -g0 $($(TESTCASE)-cflags)
 
+LDFLAGS_DIRECT += $(shell { $(LD) -v --warn-rwx-segments; } >/dev/null 2>&1 && echo --no-warn-rwx-segments)
+
 .PHONY: all
 all: $(TESTCASE).bin