Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BC12C61DA4 for ; Tue, 14 Feb 2023 20:09:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9AB4D8594C; Tue, 14 Feb 2023 21:09:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="mQb6Rhhr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5C05480A08; Tue, 14 Feb 2023 21:09:37 +0100 (CET) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D2CC28594C for ; Tue, 14 Feb 2023 21:09:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2e.google.com with SMTP id t8so1575010qvr.5 for ; Tue, 14 Feb 2023 12:09:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=jMtKHjHEUQHZTCezFs2+bs32DnKmdI7dUQzCIehdKig=; b=mQb6RhhrY7GYBK2AuOuuvQy8ZQFRajOJ/d1h+lmAKOwt1KIm0azlBJXtHVrrFNITuG NLbJ2eWghkcjGdIRFC3blzUdL5VSqQr2RqGnGWIj+v4Tq10Eo275fQVpZszjZGnNFQkU D12Kn+R48CaYwNyMceN5GjENAQsG0aTilqz5I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jMtKHjHEUQHZTCezFs2+bs32DnKmdI7dUQzCIehdKig=; b=7UqvTBwKeAm51OzOiXmuzkQRjafzXYslgdd6vsKMJhPiuN/QWzS5rTXlGcnE7WJCMo R4+cwxluX6iVD+o49BwGpyWmipWk+1EEIHS3EBl0oa6O2CBy+VmtlID2MqIvm4yGhGkl kS7CgdSYaQ3YZkHj+6Sl4KqpxI7nljkEcjUxZsMtQb1SzXvplHWAHGC6ilWKsLong46K 286OpgRkwSczQxrNB3AG8gF4JD1h4zPsY3LMIHPePSomz6SD9WTlvdKQaXCBF6AX5Pxc OZ33VwIAaoovtJeQxEsMg3Rxx4Gdt3cSgCoikfmxEW6UVQuHCpqQgnf3nL/QfFF3a9yv NO/w== X-Gm-Message-State: AO0yUKUBoYlq7lMsJJo3vyqfft+uAbO45VCzAH3ya4TxY/mxAStRG7uc KH+0qctCCZN/IOcQECOMdqLsEUUTw+KhtvLRyCg= X-Google-Smtp-Source: AK7set+REazVRkblWy3BeJlLwJWbtud3uPohGeMgcc9Niq3mDT979iJ36qFp7Lxybxl0ARRcUEqYtg== X-Received: by 2002:a05:6214:252d:b0:56e:a07b:f4d0 with SMTP id gg13-20020a056214252d00b0056ea07bf4d0mr7626463qvb.23.1676405373414; Tue, 14 Feb 2023 12:09:33 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-c7c0-e2dd-6c89-7c7c.res6.spectrum.com. [2603:6081:7b00:6400:c7c0:e2dd:6c89:7c7c]) by smtp.gmail.com with ESMTPSA id u186-20020ae9d8c3000000b00731fe65bef2sm12342687qkf.66.2023.02.14.12.09.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 12:09:33 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 1/2] Makefile: Link with -z noexectack Date: Tue, 14 Feb 2023 15:09:31 -0500 Message-Id: <20230214200932.2354650-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean When moving to gcc-12.2 we started trying to quiet some of the new linker warnings, that are not relevant to us. However, a misunderstanding of the mechanics at play meant that I intentionally omitted passing -z noexecstack to the linker, when we do need to. Add this flag and in turn remove warnings from the linker. Fixes: 1e1c51f8ace8 ("Makefile: link with --no-warn-rwx-segments") Signed-off-by: Tom Rini --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 54f894dab841..bc1ee94fb74e 100644 --- a/Makefile +++ b/Makefile @@ -806,6 +806,7 @@ KBUILD_CPPFLAGS += $(KCPPFLAGS) KBUILD_AFLAGS += $(KAFLAGS) KBUILD_CFLAGS += $(KCFLAGS) +KBUILD_LDFLAGS += -z noexecstack KBUILD_LDFLAGS += $(call ld-option,--no-warn-rwx-segments) KBUILD_HOSTCFLAGS += $(if $(CONFIG_TOOLS_DEBUG),-g) -- 2.34.1