From patchwork Sat May 20 20:55:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Edwards X-Patchwork-Id: 1784183 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=WsB6Jpg1; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QPKmP6z78z20PV for ; Sun, 21 May 2023 22:35:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C970B85727; Sun, 21 May 2023 14:33:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WsB6Jpg1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D84F5846F5; Sat, 20 May 2023 22:56:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) (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 DF3BB84788 for ; Sat, 20 May 2023 22:56:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=cfsworks@gmail.com Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-64d30ab1ef2so1464819b3a.2 for ; Sat, 20 May 2023 13:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684616165; x=1687208165; 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=Tn7urIgJf8m5/8oTPK6brELqOJOqEqfQPKODBqgTxUw=; b=WsB6Jpg1Oewyh9koKnUlysLHn8Cm0MMIyocJ6UixMFz00nj5SwI1ToPmNdgOcLTgEM TQFrIAl+7a8BZRbac1Lzf4jwHSqKfxADpZn7IVmz6MzmMRQudMJ6obUZmLX8pMqUNtZs zurOZA0zK337sOCuDa4ukvBJmisPEZYHzzS41POssvnbdUY6YX4M9TwuaeuAKeDvNh9N zxW9gsbi/Hhkg6S0uEUCUOfJGVeWhUyU+KoD8NHY9fmi+vnZstDqpAUi7Q8yUuie1QWc cAbAR9UDUd6QnxoHxhmAZLlxFVWcRqi+Q3uEyAuOAKf+psXd+GOMb7UJZIV19iU3fGCk 5nWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684616165; x=1687208165; 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=Tn7urIgJf8m5/8oTPK6brELqOJOqEqfQPKODBqgTxUw=; b=g9Eo+3TU3IRQXHSP3nD8Z/Pq+CBs6SCMbk/vXL999EkGp0tLH3cyQI85y+10r6RTai V4WPgF8ljjL3C04J0QGpbTwh0pvVkeBjSiQO+kixe0ZWp5z+mf0m9IbVX6tUfiHPklPn 0TyMuVOh4fhgOF0WAqarOGIEh5kQZRUMvZGH+Ne+paZ1V41XN02CH1S+z+15oSKeIvFx PzC8l5kvzFOilQrs6cWSMA+DIvduZ+8VS4dHoKbX2zz22W+Y/nVXyJIg0feQcENRx0+Y ddcqK4suNItCR+L5AQMnQzCbiAiEJmTyI1wKApv38MC6E8d3gbDRLSUOhidLZ/nQvgXs A48A== X-Gm-Message-State: AC+VfDxgpNlwWpdylkTjDzsW9Mt/+xrBUB0NMr/wvcUWwn2JmTnHMNP8 tUaWocRX+xkAhz5b/kmRjST9B2RxFPbo7Ymb X-Google-Smtp-Source: ACHHUZ7v54PAl5dPHiBNp8OH+j5tWzymf01ZwkkGHga5xiLdVAbs9k8ASIjWCCmO5yb39IbFxReADg== X-Received: by 2002:a05:6a00:194d:b0:643:bb16:7ca6 with SMTP id s13-20020a056a00194d00b00643bb167ca6mr9348370pfk.21.1684616165154; Sat, 20 May 2023 13:56:05 -0700 (PDT) Received: from celestia.nettie.lan (static-198-54-134-172.cust.tzulo.com. [198.54.134.172]) by smtp.gmail.com with ESMTPSA id j17-20020a62e911000000b0064d413caea6sm1651045pfh.179.2023.05.20.13.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 13:56:04 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: u-boot@lists.denx.de Cc: Sam Edwards , Heinrich Schuchardt , Ilias Apalodimas , Tom Rini Subject: [RFC PATCH 07/10] arm: efi_loader: discard hash, unwind information Date: Sat, 20 May 2023 14:55:44 -0600 Message-Id: <20230520205547.1009254-8-CFSworks@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230520205547.1009254-1-CFSworks@gmail.com> References: <20230520205547.1009254-1-CFSworks@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 21 May 2023 14:33:27 +0200 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.8 at phobos.denx.de X-Virus-Status: Clean LLD tends to put these at the very beginning of the file, only for the .text 0x0 directive to end up going backward and overlapping them, creating an error. Since they don't appear to be used at runtime, just discard them. Signed-off-by: Sam Edwards --- arch/arm/lib/elf_arm_efi.lds | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/lib/elf_arm_efi.lds b/arch/arm/lib/elf_arm_efi.lds index 767ebda635..0b6cc5bcb6 100644 --- a/arch/arm/lib/elf_arm_efi.lds +++ b/arch/arm/lib/elf_arm_efi.lds @@ -62,5 +62,8 @@ SECTIONS *(.dynstr) *(.note.gnu.build-id) *(.comment) + *(.hash) + *(.gnu.hash) + *(.ARM.exidx) } }