From patchwork Wed Jul 24 01:07:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 814122 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2556709wro; Tue, 23 Jul 2024 18:08:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUfZqwicH/bdLKVu5D32uIMn1qi7ytZqFPaIiI7azyF1oH5HWYTwbThdSARGzXIk7JQX306UHXbW7Z7GCriTYfP X-Google-Smtp-Source: AGHT+IG0TcRa9a3pq38l5EBtEZsUOdieCX8MtDONz6i5Nadk7x8mCVzstC03Pv3bGjT/nWsGKeJY X-Received: by 2002:a05:6359:7c1f:b0:1a6:4ef2:86c7 with SMTP id e5c5f4694b2df-1acec41eaf5mr113425155d.14.1721783319540; Tue, 23 Jul 2024 18:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721783319; cv=none; d=google.com; s=arc-20160816; b=cp2djn2kFk3oG0+ihoUIVHmXidMiUt72fUjxpKf47vVsiT0JRPxjK48ZgleAgmcRqk tg2DC/9lvFi/91BVzj7oHGh7/RkteS+LN381Qsf14pxRPG06TzJ+iGmCfFdHwHanjLN0 G06AtSs6N3gn4If3Do+qi9TsLC23SKyNr0o43BL5NydSaIhNBUeDKYRVEqJywoPed5Yt aeJ6EEObchTDlUXBuhQVTgk6CSy83KcZMhKFDtfBN7Hei6BS79KmThfqOsmqzCirxt3I KonD5HNfusB/q+2T976hOWlNx2YHgIlXd/fbcGjfQJRzvh3OfBK08VI5TQbyB0iMQKja m6tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Tn7mhOOTb+dyTpB/8ysxMOxZiY5Mj1///H9tCKM6bo0=; fh=Vvliz9ENSk/yCY42nG87aL5dW+Zo0lduSx74U3lH2V8=; b=qmYQSkZc2UrJ9NdiNfTrzfXZXcBeYJl49TlIuKc5cSUg3imj+yz710yYdzi9DYm35N ev88N8OrIZOTXfilkZvRRQNLREWOV8nVLR423+MxsOGw3ehPAD79/biZBpk8nY95wE04 dT05ykBwk1koWIvW3VubjTpy8e7PPZIq2QIWEBzEtv71MCDw1bBCtLB18rmALFj3x4WL J4T6X4pFJI/ORUJcX60fdVnwsxXj8d6ICv/vumkkFk/VYTd1dQfQS7YkXf74TPIUlD20 VwhY2ea0L+hBaJoVetNjCeL+rhLddL/QfTOjdoOOaf5f+cnZ5l9W2Ka87WYrZzKpwPw2 v46w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PInf7IL2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a19904c8b3si1093633885a.235.2024.07.23.18.08.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jul 2024 18:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PInf7IL2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWQU0-0003hn-4L; Tue, 23 Jul 2024 21:07:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWQTr-0003de-5I for qemu-devel@nongnu.org; Tue, 23 Jul 2024 21:07:49 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWQTo-0001uR-4G for qemu-devel@nongnu.org; Tue, 23 Jul 2024 21:07:45 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-70d153fec2fso2619826b3a.1 for ; Tue, 23 Jul 2024 18:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721783262; x=1722388062; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Tn7mhOOTb+dyTpB/8ysxMOxZiY5Mj1///H9tCKM6bo0=; b=PInf7IL2y20lpNaNtym63gMTHloqDiVBIObIZ1vb/loZrmYVvQFnT10aluqIZ43Y+N O/DVC49ALwnOhf00DSwzbIU6VUWRvfIEfIR3UP3xlQ8aBnvdVdsbe2W+64ag7LoaU5QH k+9INza0do1d/oL3AnX5RWxUTieIjRR4i+awrLLMOSPBDf2nqFbAmnxyIjovaD/RsbhS faebBHEgw0DmXutqw/Omp1BL0Npa46nRGBLdjFkcMO5L6C2SJmanR7wVtpXEThTdpOA5 ZC9WTe8WCbq2iFOlqCQhQqqkM0ifbFeOfdpqDMXFt7AtWljtQ7yqSLCNiY7doUZC9fYp gr7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721783262; x=1722388062; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tn7mhOOTb+dyTpB/8ysxMOxZiY5Mj1///H9tCKM6bo0=; b=QKXolPiaHikXLP/d++UN28qQEVTM0D/o2cOh1dj42ICr+IxUAdKNGRfduhD3u6uLFn tJhYox16eYeoxSC3xCLqha2IBGVy4ojEvr/AJ6GEYpfWLyH+2FW16UyP6GanCZDXHCHR L4c4qdEJmQo8P4dRbyK4IXw28snflApxwkvwhJFw0mxEdY9wQhqRowlX+tIMnCxZgL+d FyFWgxGHENhyWK/73W2X+j+RROziONluRU6T1l54lVIh07Q/TUID1p2xiTYSI/XGukKj x1gbbLKu10NwVDCsK4hnrkJLHo2JsnuKgLVHLjZffug1m8QRY0UkMwqcZzrUVjVO6Adg Q2jA== X-Gm-Message-State: AOJu0Yx92I9qBnCIGbH5dT2sFLIZE0VFwW6BzJYK03DpM22PPhAR8pCR Puzsh9UpWyl8G6jLdAF4MIwCcNwPZd3/LuSMqf9UG8xV1ekRrbfWRGM4K6DlhQ5HlsTZlCmZsRE Okpj2CA== X-Received: by 2002:a05:6a00:138b:b0:70b:aa7:3232 with SMTP id d2e1a72fcca58-70e997119a8mr1822888b3a.27.1721783261636; Tue, 23 Jul 2024 18:07:41 -0700 (PDT) Received: from stoup.. ([203.56.128.103]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-79f0e6c947esm6961093a12.74.2024.07.23.18.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 18:07:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org Subject: [PATCH 1/2] tests/tcg: Use --noexecstack with assembler files Date: Wed, 24 Jul 2024 11:07:32 +1000 Message-ID: <20240724010733.22129-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240724010733.22129-1-richard.henderson@linaro.org> References: <20240724010733.22129-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Add the --noexecstack assembler command-line option to avoid: /usr/bin/ld: warning: boot.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 which is enabled by default with current debian cross toolchains. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- tests/tcg/Makefile.target | 2 +- tests/tcg/aarch64/Makefile.softmmu-target | 2 +- tests/tcg/alpha/Makefile.softmmu-target | 2 +- tests/tcg/arm/Makefile.softmmu-target | 2 +- tests/tcg/arm/Makefile.target | 2 +- tests/tcg/i386/Makefile.softmmu-target | 2 +- tests/tcg/loongarch64/Makefile.softmmu-target | 2 +- tests/tcg/riscv64/Makefile.softmmu-target | 2 +- tests/tcg/s390x/Makefile.softmmu-target | 2 +- tests/tcg/x86_64/Makefile.softmmu-target | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index cb8cfeb6da..1f8e5b3d30 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -115,7 +115,7 @@ endif %: %.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) %: %.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wa,--noexecstack $< -o $@ $(LDFLAGS) else # For system targets we include a different Makefile fragment as the # build options for bare programs are usually pretty different. They diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/Makefile.softmmu-target index dd6d595830..139e04d15f 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -28,7 +28,7 @@ config-cc.mak: Makefile .PRECIOUS: $(CRT_OBJS) %.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -c $< -o $@ + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ # Build and link the tests %: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) diff --git a/tests/tcg/alpha/Makefile.softmmu-target b/tests/tcg/alpha/Makefile.softmmu-target index 09193a62d6..a0eca4d6ea 100644 --- a/tests/tcg/alpha/Makefile.softmmu-target +++ b/tests/tcg/alpha/Makefile.softmmu-target @@ -22,7 +22,7 @@ LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc .PRECIOUS: $(CRT_OBJS) %.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -c $< -o $@ + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ # Build and link the tests %: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) diff --git a/tests/tcg/arm/Makefile.softmmu-target b/tests/tcg/arm/Makefile.softmmu-target index 547063c08c..b66074b0b4 100644 --- a/tests/tcg/arm/Makefile.softmmu-target +++ b/tests/tcg/arm/Makefile.softmmu-target @@ -36,7 +36,7 @@ LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc .PRECIOUS: $(CRT_OBJS) %.o: $(ARM_SRC)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -c $< -o $@ + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ # Build and link the tests %: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target index 8e287191af..06ddf3e04f 100644 --- a/tests/tcg/arm/Makefile.target +++ b/tests/tcg/arm/Makefile.target @@ -25,7 +25,7 @@ ARM_TESTS += test-arm-iwmmxt # Clang assembler does not support IWMXT, so use the external assembler. test-arm-iwmmxt: CFLAGS += -marm -march=iwmmxt -mabi=aapcs -mfpu=fpv4-sp-d16 $(CROSS_CC_HAS_FNIA) test-arm-iwmmxt: test-arm-iwmmxt.S - $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) + $(CC) $(CFLAGS) -Wa,--noexecstack $< -o $@ $(LDFLAGS) # Float-convert Tests ARM_TESTS += fcvt diff --git a/tests/tcg/i386/Makefile.softmmu-target b/tests/tcg/i386/Makefile.softmmu-target index 5266f2335a..4096a1cf31 100644 --- a/tests/tcg/i386/Makefile.softmmu-target +++ b/tests/tcg/i386/Makefile.softmmu-target @@ -25,7 +25,7 @@ EXTRA_RUNS+=$(MULTIARCH_RUNS) .PRECIOUS: $(CRT_OBJS) %.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wa,--noexecstack -c $< -o $@ # Build and link the tests %: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) diff --git a/tests/tcg/loongarch64/Makefile.softmmu-target b/tests/tcg/loongarch64/Makefile.softmmu-target index 908f3a8c0f..d5d5c1a7f6 100644 --- a/tests/tcg/loongarch64/Makefile.softmmu-target +++ b/tests/tcg/loongarch64/Makefile.softmmu-target @@ -22,7 +22,7 @@ LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc .PRECIOUS: $(CRT_OBJS) %.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -c $< -o $@ + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ # Build and link the tests %: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) diff --git a/tests/tcg/riscv64/Makefile.softmmu-target b/tests/tcg/riscv64/Makefile.softmmu-target index d5b126e5f1..7c1d44d3f4 100644 --- a/tests/tcg/riscv64/Makefile.softmmu-target +++ b/tests/tcg/riscv64/Makefile.softmmu-target @@ -10,7 +10,7 @@ LDFLAGS = -T $(LINK_SCRIPT) CFLAGS += -g -Og %.o: %.S - $(CC) $(CFLAGS) $< -c -o $@ + $(CC) $(CFLAGS) $< -Wa,--noexecstack -c -o $@ %: %.o $(LINK_SCRIPT) $(LD) $(LDFLAGS) $< -o $@ diff --git a/tests/tcg/s390x/Makefile.softmmu-target b/tests/tcg/s390x/Makefile.softmmu-target index 4c8e15e625..f60f94b090 100644 --- a/tests/tcg/s390x/Makefile.softmmu-target +++ b/tests/tcg/s390x/Makefile.softmmu-target @@ -6,7 +6,7 @@ CFLAGS+=-ggdb -O0 LDFLAGS=-nostdlib -static %.o: %.S - $(CC) -march=z13 -m64 -c $< -o $@ + $(CC) -march=z13 -m64 -Wa,--noexecstack -c $< -o $@ %.o: %.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -march=z13 -m64 -c $< -o $@ diff --git a/tests/tcg/x86_64/Makefile.softmmu-target b/tests/tcg/x86_64/Makefile.softmmu-target index 1bd763f2e6..ef6bcb4dc7 100644 --- a/tests/tcg/x86_64/Makefile.softmmu-target +++ b/tests/tcg/x86_64/Makefile.softmmu-target @@ -25,7 +25,7 @@ EXTRA_RUNS+=$(MULTIARCH_RUNS) .PRECIOUS: $(CRT_OBJS) %.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wa,--noexecstack -c $< -o $@ # Build and link the tests %: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) From patchwork Wed Jul 24 01:07:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 814121 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2556712wro; Tue, 23 Jul 2024 18:08:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVozZ73QtW3C4UjVED8ezPemALelCeUq27F8b2hDHqTZPT1uFfAFvacbiLwy6o3D9LG3dJmCzeYTclKbMX6XOe+ X-Google-Smtp-Source: AGHT+IFzUnUxeLm/1+tQ5jQL++Kbu792iH0nuj2j3MCXYsRyAj3sM9rVE4A+XEjrrtvfCk1AOVWk X-Received: by 2002:a05:6102:3ca7:b0:492:9ca1:d35e with SMTP id ada2fe7eead31-4929ca1d679mr9025577137.5.1721783319922; Tue, 23 Jul 2024 18:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721783319; cv=none; d=google.com; s=arc-20160816; b=m2p4TtrZC0e0ZfN6UqfaaYOOHLkC2L8nNo7x4lnyIpuKD9OPsrkxAi0O271fQzhqnf 0d2gFYpBLylTNtwR3N+4aPVkIZTEsVBixO8siTC0RleZz4TbMRn2WBpvbnW+1378SbHF jnxiEo0E9vnHOlWibJP6N9E1dAslEDgEKMc+3I4wO4B7yFf2eHlNKVWBs3HTFJ8e2CZn QQ3+6hEu3gWzTCzRvRyylGPfDJhOI7Gx3tLwnjBDvIQYWvpZq9nz+q/AfaZmCsPc50qr Sn8G6sLftArWCw4fWdIIOh5F5UUs0DaTUekMztCp17ONehreVAMRnVduSF2Yv5a57LDF LNbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gUPoT7+GTGCB/rwxHsxEdqLi/GCEVozJp9dhj9QBUo4=; fh=Vvliz9ENSk/yCY42nG87aL5dW+Zo0lduSx74U3lH2V8=; b=IpJM5B4NyjwNgEEL4IpGQWMiT0g8q/EXSUKMsFmzs2EOOi/rE0yV8N1ccgzy2j8iW1 EafK25zkMXz+Hgpg59wKf6Y37FKF3JFbqwnco5peYEsBcxGBI728m9/Bp1rEiPFwomH7 VYC8D61ZIT9HACSxF2cGx1SmJP+kErFZVc6Y+wwhZXDjTOh2y8aLAJ0Lq0++gMHy5ed5 U/SToVX43LCv5ymRxrjdZNMPle5vdtTFvyr+Jcv1vEi6/mK1pLS8U36pxNVgH1CdB0AF Bhp1cGaEJK4L4nobe0R60n+q6cmae67xitgy1EJQus3zXbEpgoDiGSF2YkUHyYykaWS/ 7DCw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VN92iA0p; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a198f97f99si1173983285a.81.2024.07.23.18.08.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jul 2024 18:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VN92iA0p; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWQTx-0003em-43; Tue, 23 Jul 2024 21:07:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWQTs-0003dg-9n for qemu-devel@nongnu.org; Tue, 23 Jul 2024 21:07:49 -0400 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWQTp-0001um-9S for qemu-devel@nongnu.org; Tue, 23 Jul 2024 21:07:48 -0400 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3d9400a1ad9so3505543b6e.1 for ; Tue, 23 Jul 2024 18:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721783264; x=1722388064; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gUPoT7+GTGCB/rwxHsxEdqLi/GCEVozJp9dhj9QBUo4=; b=VN92iA0pmGfcSfIMePXswYjoAu1OQXPLheKGvNp7Qm1qUTK71iTbgg0D2CJbnN6s24 QElhSPd2Iyb1lO479R2PtRVWWcgffvszsO5BGXrqmjtdLlHyyQjiKT9/aGEU9CdZUs3G mJrhzf+xLglSdfxBdFhlyf7PQuFOyBmnpn5yPiAKwocWuHd43J2KAmXxgo67h9O/mfDV FSqnfXlSFQcQOw3x+axSgShu3KOKhr2BwzwNBhypjff8q0J246P9SdKo/LJRl854CKDn NaRMzZFmq41K/wza9TcGMb1lyMWTzjHcja8GBHk9vLdxrrtoBQpMTA4UK5zERzuI3pIu uTIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721783264; x=1722388064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gUPoT7+GTGCB/rwxHsxEdqLi/GCEVozJp9dhj9QBUo4=; b=Va/3qVGpc5TvnLkDVtLuJ+VxGZAO1dnXGbZDN6FSHK4WB+c47PMb1VikmmRpue+Ovk QQ2UFEklPagilL91XUi/FCQU2lQhSwVlvpkYYlDtrMrI/rOEtC7rtwHFD5QXqUtiiJuF 9aOXenvuzaaVEHBwtN+K7n5iDoXWvu4zLE0O5YQUbXkxn1aIIVTc5tvPQsRn8xNjCCNd usLTiGH+yF5ZBcYvLhJN6GEQAuuFDj9VaQslIlY44ius7ElUHE0jxqk6s3taC5eKhAIV EcbLcwTgg74ovo4gJPhR9AvC+BNkBueOszEeoU8vxNOSoQs//IGOzad0FZZdmiee7Le4 fpaQ== X-Gm-Message-State: AOJu0YxAjRt2B0WfqYCutkT6nF+my5Q0RA1c1jhL1uDv+sAquECD4IDe GFLCMDLbyuVyhjjxuQ1Ba5bsxcQWyI8HqxcEnAkmd1GuhK9Q+W7POMeuEJQOl1KI9IVMbChR+FY DmbzoZg== X-Received: by 2002:a05:6808:1809:b0:3d9:3f3f:9cd0 with SMTP id 5614622812f47-3dae5d2d7f4mr17225794b6e.0.1721783263939; Tue, 23 Jul 2024 18:07:43 -0700 (PDT) Received: from stoup.. ([203.56.128.103]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-79f0e6c947esm6961093a12.74.2024.07.23.18.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 18:07:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org Subject: [PATCH 2/2] tests/tcg/loongarch64: Use --no-warn-rwx-segments to link system tests Date: Wed, 24 Jul 2024 11:07:33 +1000 Message-ID: <20240724010733.22129-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240724010733.22129-1-richard.henderson@linaro.org> References: <20240724010733.22129-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x235.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Recent debian cross-linker for loongarch issues ld: warning: hello has a LOAD segment with RWX permissions This is partially related to tests/tcg/loongarch64/system/kernel.ld, but is not fixed by explicitly adding a single LOAD PHDR. Disable the warning, since it does not apply to kernel images. Signed-off-by: Richard Henderson --- tests/tcg/loongarch64/Makefile.softmmu-target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tcg/loongarch64/Makefile.softmmu-target b/tests/tcg/loongarch64/Makefile.softmmu-target index d5d5c1a7f6..6d4a20fde7 100644 --- a/tests/tcg/loongarch64/Makefile.softmmu-target +++ b/tests/tcg/loongarch64/Makefile.softmmu-target @@ -16,7 +16,7 @@ LINK_SCRIPT=$(LOONGARCH64_SYSTEM_SRC)/kernel.ld LDFLAGS=-Wl,-T$(LINK_SCRIPT) TESTS+=$(LOONGARCH64_TESTS) $(MULTIARCH_TESTS) CFLAGS+=-nostdlib -g -O1 -march=loongarch64 -mabi=lp64d $(MINILIB_INC) -LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc +LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc -Wl,--no-warn-rwx-segments # building head blobs .PRECIOUS: $(CRT_OBJS)