Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp16301rdb; Fri, 18 Aug 2023 12:41:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2QNiHIzgs/NPz5ErOYuciSOWpZPpJBQsZaDyW3o7vvPMmbCmMfsGJp+R2G0IXdWWlQcP3 X-Received: by 2002:a17:90b:68b:b0:269:55a2:952c with SMTP id m11-20020a17090b068b00b0026955a2952cmr149460pjz.40.1692387709209; Fri, 18 Aug 2023 12:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692387709; cv=none; d=google.com; s=arc-20160816; b=zwTC/BpyQkwntTvL8RMAOm3mG7kxoCdlfuiBZU5rQMyj8JzwW+J4JWENU+0U2oEWDz 3hZEcXuyS+s0apku9/5l5I+Fz2QonbDSRv1vV5sj/diwt2iKlP1D1LK+CB/eUxPkb/j0 U1WHHkiMau00454QBEE5OS+vHpgoKfuhyEVjqbJ+u/9mio5oNoasy189dXZuHx+Px3QH 5mZCVmcKaA0DiN9xbBJJ1UjbdytreQWlAS2kfngpi+GWo3LKAV6oVUHXxjL2TLeWuT4l jPtwm5TPuhtmVwVd6pad9V5l6+6osV8RmJUmSjtg7gcZwlIr9EBNZ9jz4NeZLmMQRali MUhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=blpxnKd6uZPowBCWEIB2pVO5W4R/72TlO8xs6qRTRDU=; fh=2K0cnVWNN/lSoXOQ2Jt2UifFp/1e7O4elwn57wGf9gU=; b=iEkKc7cfyhcPTaTUVf8o2myaCVpxYpsEEB6dajY9UWCBq9zv6dAo1RgZxU30JN91um uh0WpW6pFk6bYtYjzDqFU4PZCVaNlLNPIv7Ec5idGcn/wfqBDccCusQAQ+eDDBZzu1Fh ITvabvl56j5TSt0O4vZOiXFHuB06atYZRoMhcue+P9SsxGedsYrHI7xXJds6gaLDMjRB uCB3HY9/cIPvkVusVuafaGT5MmNsOkAwSEUWlOFYfwh+CmGxm+A1iI4ftsbhDv6NRq0G gZbhw8UQ0E4NFBHEtEOzeuQzatqHZiKvsR5U9HR9uRocoNYgYqY954MAwt1MPuPRIvjG 8dAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fnAyx4DV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc6-20020a17090b1c0600b0026359a2e980si3847118pjb.21.2023.08.18.12.41.35; Fri, 18 Aug 2023 12:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fnAyx4DV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377321AbjHRNqC (ORCPT + 99 others); Fri, 18 Aug 2023 09:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377301AbjHRNpb (ORCPT ); Fri, 18 Aug 2023 09:45:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D6913C34; Fri, 18 Aug 2023 06:45:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 180876687F; Fri, 18 Aug 2023 13:45:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADB9FC433CA; Fri, 18 Aug 2023 13:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692366314; bh=B8e/GlBS9y5XQvKhnA7moHi7ggUXYtzy41FY6p2n4uA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fnAyx4DVZ49Zxq2ChlLb2DYtNCyXQwsmPXvKkVaZvl2MdGQ7vBtycpxPJbrWKoNoJ N+XyOffZvGfwMgLYjJjbDjiY0NWVJLgXk3SgsdxlsMWR01n9/dR/m7eXUpSQfE1zo9 bh/IXIIhHfXjfT6eGVY6JjXLd5qKQJmyGv7oc6nm+bFn5RT1rkKt8XDtDRjIu5hZkW e4NwdeDmoPQROSvnPw2MrIH2lI/xVkzx78a0m2JA3yp2ZvAph3ecDAoZSu3qfahMH3 RCHf7GuzmrgyhX6Dz2Cgfpmm3NeSGY250h9Bs05XoW37uNWfNikoFkUjklzYMv28h2 Qy2IZfR666JwA== From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , Evgeniy Baskov , Borislav Petkov , Dave Hansen , Ingo Molnar , Thomas Gleixner , Peter Jones , Matthew Garrett , Gerd Hoffmann , Kees Cook , "H. Peter Anvin" , =?UTF-8?q?Marvin=20H=C3=A4user?= Subject: [PATCH 10/17] x86/boot: Drop workaround for binutils 2.14 in linker script ASSERTs Date: Fri, 18 Aug 2023 15:44:15 +0200 Message-Id: <20230818134422.380032-11-ardb@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230818134422.380032-1-ardb@kernel.org> References: <20230818134422.380032-1-ardb@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1116; i=ardb@kernel.org; h=from:subject; bh=B8e/GlBS9y5XQvKhnA7moHi7ggUXYtzy41FY6p2n4uA=; b=owGbwMvMwCFmkMcZplerG8N4Wi2JIeV+6fJO/VdHM11tDlTECoV5ZedKPsjWsjq05aDiqdCgh yfOMO/pKGVhEONgkBVTZBGY/ffdztMTpWqdZ8nCzGFlAhnCwMUpABPZE8/wz6qcw+04xzHrGIvX jTM5d30v9VEKy3gie8v0yN4jHDVH0xgZLvusyS52fnUstcoocLJtno6fp5NIMNfNV9nC4qyi0/w 5AA== X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The minimum binutils version was bumped to 2.20 in 2017 so there is no longer a need to work around quirks in older versions than that. So drop some meaningless linker script assignments to '.' of ASSERT() return values. Signed-off-by: Ard Biesheuvel --- arch/x86/boot/setup.ld | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/x86/boot/setup.ld b/arch/x86/boot/setup.ld index b11c45b9e51ed90e..a05dcaa4b74cd9f8 100644 --- a/arch/x86/boot/setup.ld +++ b/arch/x86/boot/setup.ld @@ -56,12 +56,8 @@ SECTIONS *(.note*) } - /* - * The ASSERT() sink to . is intentional, for binutils 2.14 compatibility: - */ - . = ASSERT(_end <= 0x8000, "Setup too big!"); - . = ASSERT(hdr == 0x1f1, "The setup header has the wrong offset!"); + ASSERT(_end <= 0x8000, "Setup too big!") + ASSERT(hdr == 0x1f1, "The setup header has the wrong offset!") /* Necessary for the very-old-loader check to work... */ - . = ASSERT(__end_init <= 5*512, "init sections too big!"); - + ASSERT(__end_init <= 5*512, "init sections too big!") } -- 2.39.2