[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] x86emul/test: suppress GNU ld 2.39 warning about RWX load segments


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 9 Sep 2022 09:23:31 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G6h3D37U1hyV3ZOoYMiLCX0lzV1VnQzToPpFi7OtJOk=; b=L7qnRNvUI/EoyVMjCesYYrtfDe7kMjVJu5+BZOtHGGdbo5vWWSl4Q0GKBXzTJ09AKx5oTw9cAm7CBO8VJH+qwSKoq4QOmDkpdh8RuBoUIhSCFwNJuMYxdvkYBR64QNWeSHyZJhAZiCsibRB2yXcapuOKZ00nj4nDuY0vO4gSigQoMFxV7701hgV3WbSQEn/BHl+FMKvtxUA6ifTpZN0c6IUXgSbexSZMM6jhsLEaD4vX4PnQp40zi8f27NWCVKhckH8Wj/ydBZp+2+xRxghvnXoei3GJ89tfYoRhUVp0CiSNbQ91Qr5Vqzv5nYpbHmOs5kNzQIGt2rywf4I2HIqQBw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SwQuvMRaZjQoJeHigZFpAk2s/OTwkP7dyOu1rRmpqwGx4Abzn+RHntdXY0uIelZOl2cEbJzuV0CtzSn8sslQMsVDHbrhmHatjGg3QBYsTQ0ZKk3At52qt1I+SeECzvQM6AZcA1UVDS9edv1AxvW1CEe6JOuZI8xqCrfh2sW1OnRaGsecqDZE2WB0oOzZmeFO71CHRZma4+IMn2cF9x90L3AS9K2SBwnRDnVsSFHn2QyFk0EW72n8vtPPT+qBShv+LqFavg838FyggdEa0tN70+2BhAWTxh1XxY9IGxvK7R07GUgMUBWKd0PBlhoJO/toZwt7UUEqkwMayHdw4ooDJQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 09 Sep 2022 07:23:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxxx>

--- a/tools/tests/x86_emulator/testcase.mk
+++ b/tools/tests/x86_emulator/testcase.mk
@@ -6,6 +6,8 @@ $(call cc-options-add,CFLAGS,CC,$(filter
 
 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
 



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.