From nobody Tue May 21 17:23:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1690794715; cv=none; d=zohomail.com; s=zohoarc; b=Z7MQpy9id5XmA/lVedS+rxheLbSeIj7pN3+r3o9On4ZBShlDmoqUJOvzqYjLrCR2yfHba5YfdwdpvrzzLzHwMV5kDggNdDTPaDtrx89USf5gKYKccb8GmJyEb8pWb8G3DuTE3XtfL44HDzpEcdC1TfL8aSkht96XQ7T/EO3T+aE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690794715; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject; bh=0QScuJRMU4ixMa/1gO5xg54HCFVlbOwEsTWMxlZ9iNs=; b=Iqw4uPBrnDtq1irwfiFK1uuDQxZXJ+c5tiybGMRErhAGYcwKuVquS9EVMsK8jdWLZHxgLu0tQ9wf/MDZo0Kk/EhXhNUkfpqrFdYxj07qeoOI1f/WJTDFQekkwKoEXb34Ame5UxFO+x+ApIvD9gR1m7CXhIV/Mb1yjtr5ilnFVdY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1690794715744316.9245950491594; Mon, 31 Jul 2023 02:11:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQOvi-0007la-Pi; Mon, 31 Jul 2023 05:11:06 -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 1qQOvg-0007jL-1j for qemu-devel@nongnu.org; Mon, 31 Jul 2023 05:11:04 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQOve-0001Pz-H0 for qemu-devel@nongnu.org; Mon, 31 Jul 2023 05:11:03 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-686f94328a4so2355463b3a.0 for ; Mon, 31 Jul 2023 02:11:01 -0700 (PDT) Received: from alarm.. ([157.82.204.253]) by smtp.gmail.com with ESMTPSA id p22-20020a639516000000b005633941a547sm7714752pgd.27.2023.07.31.02.10.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 02:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1690794661; x=1691399461; 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=0QScuJRMU4ixMa/1gO5xg54HCFVlbOwEsTWMxlZ9iNs=; b=R5fBkwEMVaYXMy5KYwHGzehAFl6Wd2lg39Evu6jauf7SCxAkRHWtQaMWcizh3Cpsem s2GbeXG+cy4YHr0lArEgaGUyjInoKT+umizX3TMK33aWCbYXRE5Y87jKtGp85KMPepq2 wXDqV0bDP1U9ckd3EyEUVCXq2QvdZW57RFTyOTSVhyqeLKi/xAZR6k/H53jsuGIa0xpJ /AjA3wNGxyee1DuScWTnooROU817g1DZjreT5jDNw8gU147GI7vZB3NepAFFqW4isXLo +q73x8e4eSeegKsW8RJ2zkzwQDaXb3OHmEtYNmFRGGMXaPkvKNa/rEuWXS2DXMsqfBNz hg0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690794661; x=1691399461; 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=0QScuJRMU4ixMa/1gO5xg54HCFVlbOwEsTWMxlZ9iNs=; b=J2IB5auhDeey7EljSM1zIrowA9snWL3949JgyRXnKQflQLpTzYz5T7nxdQSQB6xgNw WRMdPPiwKjqnFUDti8svlN7QOPaDLkkPY2tqsQx7oyjeC4JL0IEsyTt0JensygRpwG6z 86B4YMO6m98YfFr2n9IKVibsN0BywP47lqxAEQ6H3tcyRwzKEltwfEMjW+0ACa+4l3CY rmLM7iY5AAkvYqG82/1iQw6tSjybHpXj6wvoX9cq6371z8jurmii7qcaWw1h5dNfejU7 m9vnR0ix/Xy7itJjAjjiNyV5GG/NZ9GxLhECBHXPrdJCcOOdWMu1c3VTZ8fInIM3a8Zf Q73g== X-Gm-Message-State: ABy/qLadu1lu+oIH1+kJIjNAJYRrxGQCGnwruFPbmds/xYTXI+ZTEup5 7t5FyHaME+FCBVT0a6KdCO5RhQ== X-Google-Smtp-Source: APBJJlGrOLJqT3pZnkX3SqIn+mqbTJRIWSFx1d0xOGE3sftLBhXpixRdd4Hn2FLKa/wgMbDVsV5Paw== X-Received: by 2002:a05:6a20:431f:b0:139:cef4:936a with SMTP id h31-20020a056a20431f00b00139cef4936amr9337274pzk.21.1690794660849; Mon, 31 Jul 2023 02:11:00 -0700 (PDT) From: Akihiko Odaki To: Cc: Christian Borntraeger , Thomas Huth , Juan Quintela , Peter Xu , Leonardo Bras , Peter Maydell , Richard Henderson , "Edgar E . Iglesias" , Brian Cain , Paolo Bonzini , Eduardo Habkost , Song Gao , Xiaojuan Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo , Chris Wulff , Marek Vasut , David Hildenbrand , Ilya Leoshkevich , qemu-devel@nongnu.org, qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Akihiko Odaki Subject: [PATCH v2 1/2] tests/migration: Add -fno-stack-protector Date: Mon, 31 Jul 2023 18:10:39 +0900 Message-ID: <20230731091042.139159-2-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230731091042.139159-1-akihiko.odaki@daynix.com> References: <20230731091042.139159-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::434; envelope-from=akihiko.odaki@daynix.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20221208.gappssmtp.com) X-ZM-MESSAGEID: 1690794717884100003 Content-Type: text/plain; charset="utf-8" A build of GCC 13.2 will have stack protector enabled by default if it was configured with --enable-default-ssp option. For such a compiler, it is necessary to explicitly disable stack protector when linking without standard libraries. Signed-off-by: Akihiko Odaki Reviewed-by: Juan Quintela Reviewed-by: Thomas Huth --- tests/migration/s390x/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/migration/s390x/Makefile b/tests/migration/s390x/Makefile index 6393c3e5b9..6671de2efc 100644 --- a/tests/migration/s390x/Makefile +++ b/tests/migration/s390x/Makefile @@ -6,8 +6,8 @@ all: a-b-bios.h fwdir=3D../../../pc-bios/s390-ccw =20 CFLAGS+=3D-ffreestanding -fno-delete-null-pointer-checks -fPIE -Os \ - -msoft-float -march=3Dz900 -fno-asynchronous-unwind-tables -Wl,-pie \ - -Wl,--build-id=3Dnone -nostdlib + -msoft-float -march=3Dz900 -fno-asynchronous-unwind-tables \ + -fno-stack-protector -Wl,-pie -Wl,--build-id=3Dnone -nostdlib =20 a-b-bios.h: s390x.elf echo "$$__note" > header.tmp --=20 2.41.0 From nobody Tue May 21 17:23:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1690794745; cv=none; d=zohomail.com; s=zohoarc; b=cTayCOinVDhftcH9Wv9ZT+JGc3NT4dJEge60mbAhBS3SbhCjKfLxAR1y4uM+YLDlk+zeTB/uc0sA4Jna5UueXzA5XK5kP/DaVJtuuBY7ziQnLvcCPdsApwCYDA79FW8ph/1pGOhV3e5C27F6YcB2i2cHpMUgAkLjDvQgTnsbZj0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690794745; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject; bh=NItB/vhji+5xBZB4LXOLDGTIrrt8ntoB7AnIxhxIv28=; b=POQxsc2LTmWPydJZ53ZOJznLUXIMUG0gaJYkZCEt+64HNoTImbGO4JTANFXIJVY/TX1Bm2PqyzmXSu+oiOCz4YTZb6xv91UaefFUeoygZNJLODk427h2yR+REPDj6+l0+vlV2+DdVHwWJss0lWnH04e9MkWFfsND+eRoGeJd7EE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1690794745291788.8491286164441; Mon, 31 Jul 2023 02:12:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQOvm-0007nH-Ed; Mon, 31 Jul 2023 05:11:10 -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 1qQOvl-0007mQ-7X for qemu-devel@nongnu.org; Mon, 31 Jul 2023 05:11:09 -0400 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQOvj-0001Qx-4u for qemu-devel@nongnu.org; Mon, 31 Jul 2023 05:11:08 -0400 Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-565db4666d7so3170432eaf.0 for ; Mon, 31 Jul 2023 02:11:06 -0700 (PDT) Received: from alarm.. ([157.82.204.253]) by smtp.gmail.com with ESMTPSA id p22-20020a639516000000b005633941a547sm7714752pgd.27.2023.07.31.02.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 02:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1690794666; x=1691399466; 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=NItB/vhji+5xBZB4LXOLDGTIrrt8ntoB7AnIxhxIv28=; b=pLubExkkShqSKr3oLOhx8CgGZSXg+h57oDBahXeyPazXxPRPsNiITyGYXbk1poSWqc E+HqfDXIAWVz2hHSvfTDBXm8smEAAkjT8j5oHGsJ6Ybpo9NmOmlriJpZ+P6K4MrzuDzk hAWBPiZxTj/FPPnnGU+sUAzJJyLU7rxYQmZmHvpGoLxuRRgOreirnONiab1bGJSgUMzy qGmbUXTfZYcwK2Y9mpOhQ3Xy7xZE7wHUsMvnMAdQ7k1zgJpihyAoPJ5LgF8gwFjFdPYz JbnrItUVmFGJISEyl03dgx6WkUv7A3HNbBi92xrspYt3cGC2KcfWhwaAhTO6xPolCwFS OK7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690794666; x=1691399466; 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=NItB/vhji+5xBZB4LXOLDGTIrrt8ntoB7AnIxhxIv28=; b=PmM2Xiqvk7BbLU7BeUeqbPK06SSYHFKX0hLlIlWrRE0Xknn0lkKERKGJ7rAZU9QbKd Q6fYtmrsXXVCi3JrtvV/FIu0dHbDie6+HoLdHuBYksWKD1Pw5JnPF1UCHbs4AjWURoR5 vUZTv3+OL2urNECQ0pyPWd6AbX1jqU0HrBIWwL7q/e5bGh1LUjLSvuwq/pmx+staEJ45 xWF778vhtuxmjPuG3Kb6Xq1mjYJiT5MB97E3UsNeAXp89AhDwZcIL9jx1r2saNGOyVJx xNx/lof1118Xn6/BUriEnZ+OPDqbHM9Tt4yKjKUdthaifKF52KN/uuqil3xFa5J66mxr LwJw== X-Gm-Message-State: ABy/qLZVGSQxMllw9XuE7pSCUpdmkVXhBIWiKAMD2lFohKKeObSCi/h8 IFC/6wF6cWCvzP3lSapJAEnCxg== X-Google-Smtp-Source: APBJJlGF1BdNaLlIH4ZK3p1JbPWiIT9u8ABUu9RSSlwAHTHNEW0bj0KNKQl1dQFL8CS404ALvrzifw== X-Received: by 2002:a05:6358:7e55:b0:139:b123:ae9 with SMTP id p21-20020a0563587e5500b00139b1230ae9mr7979379rwm.16.1690794665983; Mon, 31 Jul 2023 02:11:05 -0700 (PDT) From: Akihiko Odaki To: Cc: Christian Borntraeger , Thomas Huth , Juan Quintela , Peter Xu , Leonardo Bras , Peter Maydell , Richard Henderson , "Edgar E . Iglesias" , Brian Cain , Paolo Bonzini , Eduardo Habkost , Song Gao , Xiaojuan Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo , Chris Wulff , Marek Vasut , David Hildenbrand , Ilya Leoshkevich , qemu-devel@nongnu.org, qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Akihiko Odaki Subject: [PATCH v2 2/2] tests/tcg: Add -fno-stack-protector Date: Mon, 31 Jul 2023 18:10:40 +0900 Message-ID: <20230731091042.139159-3-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230731091042.139159-1-akihiko.odaki@daynix.com> References: <20230731091042.139159-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::c33; envelope-from=akihiko.odaki@daynix.com; helo=mail-oo1-xc33.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20221208.gappssmtp.com) X-ZM-MESSAGEID: 1690794746394100007 Content-Type: text/plain; charset="utf-8" A build of GCC 13.2 will have stack protector enabled by default if it was configured with --enable-default-ssp option. For such a compiler, it is necessary to explicitly disable stack protector when linking without standard libraries. Signed-off-by: Akihiko Odaki --- tests/tcg/mips/hello-mips.c | 4 ++-- tests/tcg/Makefile.target | 2 +- tests/tcg/aarch64/Makefile.target | 2 +- tests/tcg/arm/Makefile.target | 2 +- tests/tcg/cris/Makefile.target | 2 +- tests/tcg/hexagon/Makefile.target | 2 +- tests/tcg/i386/Makefile.target | 2 +- tests/tcg/minilib/Makefile.target | 2 +- tests/tcg/mips/Makefile.target | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/tcg/mips/hello-mips.c b/tests/tcg/mips/hello-mips.c index 4e1cf501af..0ba5f1bf23 100644 --- a/tests/tcg/mips/hello-mips.c +++ b/tests/tcg/mips/hello-mips.c @@ -5,8 +5,8 @@ * http://www.linux-mips.org/wiki/MIPSABIHistory * http://www.linux.com/howtos/Assembly-HOWTO/mips.shtml * -* mipsel-linux-gcc -nostdlib -mno-abicalls -fno-PIC -mabi=3D32 \ -* -O2 -static -o hello-mips hello-mips.c +* mipsel-linux-gcc -nostdlib -mno-abicalls -fno-PIC -fno-stack-protector \ + -mabi=3D32 -O2 -static -o hello-mips hello-mips.c * */ #define __NR_SYSCALL_BASE 4000 diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index 3d7837d3b8..c43020d990 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -123,7 +123,7 @@ else # For softmmu targets we include a different Makefile fragment as the # build options for bare programs are usually pretty different. They # are expected to provide their own build recipes. -EXTRA_CFLAGS +=3D -ffreestanding +EXTRA_CFLAGS +=3D -ffreestanding -fno-stack-protector -include $(SRC_PATH)/tests/tcg/minilib/Makefile.target -include $(SRC_PATH)/tests/tcg/multiarch/system/Makefile.softmmu-target -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile= .target index 617f821613..55f8609897 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -49,7 +49,7 @@ endif # bti-1 tests the elf notes, so we require special compiler support. ifneq ($(CROSS_CC_HAS_ARMV8_BTI),) AARCH64_TESTS +=3D bti-1 bti-3 -bti-1 bti-3: CFLAGS +=3D -mbranch-protection=3Dstandard +bti-1 bti-3: CFLAGS +=3D -fno-stack-protector -mbranch-protection=3Dstanda= rd bti-1 bti-3: LDFLAGS +=3D -nostdlib endif # bti-2 tests PROT_BTI, so no special compiler support required. diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target index 0038cef02c..3473f4619e 100644 --- a/tests/tcg/arm/Makefile.target +++ b/tests/tcg/arm/Makefile.target @@ -12,7 +12,7 @@ float_madds: CFLAGS+=3D-mfpu=3Dneon-vfpv4 =20 # Basic Hello World ARM_TESTS =3D hello-arm -hello-arm: CFLAGS+=3D-marm -ffreestanding +hello-arm: CFLAGS+=3D-marm -ffreestanding -fno-stack-protector hello-arm: LDFLAGS+=3D-nostdlib =20 # IWMXT floating point extensions diff --git a/tests/tcg/cris/Makefile.target b/tests/tcg/cris/Makefile.target index 43587d2769..713e2a5b6c 100644 --- a/tests/tcg/cris/Makefile.target +++ b/tests/tcg/cris/Makefile.target @@ -30,7 +30,7 @@ AS =3D $(CC) -x assembler-with-cpp LD =3D $(CC) =20 # we rely on GCC inline:ing the stuff we tell it to in many places here. -CFLAGS =3D -Winline -Wall -g -O2 -static +CFLAGS =3D -Winline -Wall -g -O2 -static -fno-stack-protector NOSTDFLAGS =3D -nostartfiles -nostdlib ASFLAGS +=3D -mcpu=3Dv10 -g -Wa,-I,$(SRC_PATH)/tests/tcg/cris/bare CRT_FILES =3D crt.o sys.o diff --git a/tests/tcg/hexagon/Makefile.target b/tests/tcg/hexagon/Makefile= .target index 87ed2c90b9..f839b2c0d5 100644 --- a/tests/tcg/hexagon/Makefile.target +++ b/tests/tcg/hexagon/Makefile.target @@ -19,7 +19,7 @@ EXTRA_RUNS =3D =20 CFLAGS +=3D -Wno-incompatible-pointer-types -Wno-undefined-internal -CFLAGS +=3D -fno-unroll-loops +CFLAGS +=3D -fno-unroll-loops -fno-stack-protector =20 HEX_SRC=3D$(SRC_PATH)/tests/tcg/hexagon VPATH +=3D $(HEX_SRC) diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index fdf757c6ce..3dec7c6c42 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -35,7 +35,7 @@ run-test-aes: QEMU_OPTS +=3D -cpu max # # hello-i386 is a barebones app # -hello-i386: CFLAGS+=3D-ffreestanding +hello-i386: CFLAGS+=3D-ffreestanding -fno-stack-protector hello-i386: LDFLAGS+=3D-nostdlib =20 # test-386 includes a couple of additional objects that need to be diff --git a/tests/tcg/minilib/Makefile.target b/tests/tcg/minilib/Makefile= .target index c821d2806a..af0bf54be9 100644 --- a/tests/tcg/minilib/Makefile.target +++ b/tests/tcg/minilib/Makefile.target @@ -12,7 +12,7 @@ SYSTEM_MINILIB_SRC=3D$(SRC_PATH)/tests/tcg/minilib MINILIB_SRCS=3D$(wildcard $(SYSTEM_MINILIB_SRC)/*.c) MINILIB_OBJS=3D$(patsubst $(SYSTEM_MINILIB_SRC)/%.c, %.o, $(MINILIB_SRCS)) =20 -MINILIB_CFLAGS+=3D-nostdlib -ggdb -O0 +MINILIB_CFLAGS+=3D-nostdlib -fno-stack-protector -ggdb -O0 MINILIB_INC=3D-isystem $(SYSTEM_MINILIB_SRC) =20 .PRECIOUS: $(MINILIB_OBJS) diff --git a/tests/tcg/mips/Makefile.target b/tests/tcg/mips/Makefile.target index 1a994d5525..5d17c1706e 100644 --- a/tests/tcg/mips/Makefile.target +++ b/tests/tcg/mips/Makefile.target @@ -14,6 +14,6 @@ MIPS_TESTS=3Dhello-mips =20 TESTS +=3D $(MIPS_TESTS) =20 -hello-mips: CFLAGS+=3D-mno-abicalls -fno-PIC -mabi=3D32 +hello-mips: CFLAGS+=3D-mno-abicalls -fno-PIC -fno-stack-protector -mabi=3D= 32 hello-mips: LDFLAGS+=3D-nostdlib endif --=20 2.41.0