From patchwork Sat May 20 20:55:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Edwards X-Patchwork-Id: 1784182 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=85.214.62.61; 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=EQYzpuxr; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4QPKm96m4yz20Pq for ; Sun, 21 May 2023 22:35:05 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 86B14855D9; Sun, 21 May 2023 14:33:37 +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="EQYzpuxr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D512846F5; 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-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 37A6E84789 for ; Sat, 20 May 2023 22:56:08 +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-x429.google.com with SMTP id d2e1a72fcca58-64d2a87b9daso1896338b3a.0 for ; Sat, 20 May 2023 13:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684616166; x=1687208166; 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=nl3gakFoi0RQKBL/1E8GfxDylTMGLlWdo70J5sqBhkQ=; b=EQYzpuxrjOI0axoQJGT1/hFPxBR4c1230E8bdyJA1RG4ndZ1ZV/5L7QGRvki0qxOop aNE14zYQREpZtvR1h6+J6u/wcr1kzXFYvY8odkx8+gSwjyhLih5iaf7+6UKC6ifQcVf1 k5NtuzltYggz0QQspZHFbYqPYy6IRRpSTepLSQv/CBwSQ/NQ/qb3r41xv7gHZt3O1Tn3 rnwWpMi9S145CevMwoOEA0KJyBw1K30kvd1e9EhnIOCIjrl1lvYDOkZnAZnRQw303HeB 6fStDv3QjOfLH6rxm5mIeZqMMTTz9iHMZuzqyybfDVX2bX518DdHI/FRMkcfRgScyPlw fe0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684616166; x=1687208166; 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=nl3gakFoi0RQKBL/1E8GfxDylTMGLlWdo70J5sqBhkQ=; b=citWW2psWA80Jm4XC75e2R02V9n8AO3H8Gtg1Uu3qaCgfyjFWyfKJhxEnfFzEFiGvP k1NRuxtslzFcQkFBHqialjlvbKpmrmYDRO/qL+ns7AJj0OY1dtbvuL7oxPHW6tlKmRwn eQwWfssWyOq7FDv03bJQfcx1SdO08bbJfh/DNykjPLaqjTbtGSe/7pVuMcZ5XkSOZmBY Fb1gYyguZlSDHjNggikwpZknGljkQBF5LlcYfX1gwfiTEw+mjrw0ZqnnmOZtQPrVqp0G SU0zlm26AZUS+Sdn7FBdSpeuCxdWnG6hbfiBibH3rI7PDT399+6BKVqFx/raCq7sIbPg DbmA== X-Gm-Message-State: AC+VfDzSI/DyUBslY1AxU98J7GTS84gpGoMhS3nwFEx9EsIleOsRl5Yn XvHtdnmDCu15eig7UUnP6+2aKNKux8TfD0y+ X-Google-Smtp-Source: ACHHUZ5vspCYBm67YKWU/l1w0GnLEGJwGoO00ExzIsbAKY+1QfQR2yuizOfPZPl5ttF44q4vbR4yRA== X-Received: by 2002:a05:6a00:2484:b0:64d:5c4c:7e20 with SMTP id c4-20020a056a00248400b0064d5c4c7e20mr854324pfv.26.1684616166419; Sat, 20 May 2023 13:56:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 13:56:05 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: u-boot@lists.denx.de Cc: Sam Edwards , Heinrich Schuchardt , Heinrich Schuchardt , Ilias Apalodimas , Tom Rini Subject: [RFC PATCH 08/10] arm: efi_loader: move .dynamic out of .text in EFI Date: Sat, 20 May 2023 14:55:45 -0600 Message-Id: <20230520205547.1009254-9-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 This is not proper: A .text section is SHT_PROGBITS, while the .dynamic section is SHT_DYNAMIC. Attempting to combine them like this creates a section type mismatch. It does seem that GNU ld does not complain, but LLVM's lld considers this an error. Signed-off-by: Sam Edwards Cc: Heinrich Schuchardt --- arch/arm/lib/elf_aarch64_efi.lds | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/lib/elf_aarch64_efi.lds b/arch/arm/lib/elf_aarch64_efi.lds index 5dd9809169..986f13936d 100644 --- a/arch/arm/lib/elf_aarch64_efi.lds +++ b/arch/arm/lib/elf_aarch64_efi.lds @@ -24,10 +24,9 @@ SECTIONS *(.gnu.linkonce.t.*) *(.srodata) *(.rodata*) - . = ALIGN(16); - *(.dynamic); . = ALIGN(512); } + .dynamic : { *(.dynamic) } .rela.dyn : { *(.rela.dyn) } .rela.plt : { *(.rela.plt) } .rela.got : { *(.rela.got) }