| Message ID | 20260212001410.1919749-7-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855285; bh=htzskcPobYbrVNqtyhmfd+I+JklFv/gd4hdqlKXO6tU=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=GX6znbjj1BCmjsgC7l1Jqzoky1SErAYBq15Q2Cg1pGI1YyQtOfebhkze8aCEzQEW2 arihAybmaTtegX4uPPb/3aScMGEYcy7wCPqX9Zk5qCreqInyFiS47AQHj8h3i4bP6k FHQwWXlsucGxzRyasZxx72+ndFAqxXscV2r7KMeonO2S5GTvl74hPIcrUtd2W1qSVH fd5llYVZKhYQQQ1YK13QQ07Td6/D2Xz7qiCp017uCeGl5bj4xo8HNWYS+YYPYfPjNB vSDsrns6x3PTUCB50tj4XyVxf3etk2+/A/mt7gD/zvsHsgirFk4u7IXvcYNw1xBnQx 1YOrqmM8j5pAw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 361C569AA4 for <u-boot-concept@u-boot.org>; Wed, 11 Feb 2026 17:14:45 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id VKcAu_rIg1jW for <u-boot-concept@u-boot.org>; Wed, 11 Feb 2026 17:14:45 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855284; bh=htzskcPobYbrVNqtyhmfd+I+JklFv/gd4hdqlKXO6tU=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=vNz2M3xQ3Z84hSu7V2z/E6j8xgC/FyNtlKT+FdcJMa6i6VXXVk+4RXdL+1u60vsAO wWFHW6/kZrc5RnazqWs06STO1rw0Q0g1qOr7iFJz7D5AYh4Ht4Ww2JbNYDENFe3mKG 2y1Y2VOlxmQN/Wp8UOF6XANGLH49JHLHPAZ6fB2q43jZ1ZBiqKDt3k02MhulxnLXh+ mcK67CaDj7/NhzNrNoMmH3OmqXviGBR53zkEz/2abEWtKrZplSUlimtE3XGF8itghK py0u8AkMJW23PphEqdz768Xmm9G71lMZGABuP7Lp1ArnUQM4i5HOKgSmu5w7P8aWYd XVg2VVY7VdKzw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 51F7F699C6 for <u-boot-concept@u-boot.org>; Wed, 11 Feb 2026 17:14:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855281; bh=6L5SNWThDQNQJEd1zofoAlVFlDHoplXryP4iVBuq/ag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z7Sl6Oy4TS8DibLSx2lJ3DFW3mz9BHm3JXHkmI7BpR/PKLs2oICd/zxioJ2gSfv1L jR16RXLbobF4EGPjNeFlQfsn+Hju/giTltKOmpdVaj1qU4PBw/eO1MCtIQ4zRZBqvA 0RohHVP/dsXGMgSJ6FOF+9eosva/+GbC3jTunk4L2dtCV+VJBy/ylUGCvW4VTJl2Qx 9RZhozPN/TwF27jdNgX2XJlxR4+Z7LnKhCIMTgo7p/6ghR52vSkSDF8ss3VLHb8a5g 7MHzaM8LfGS/I6xOzyqlZ08Xr89qzY+zsCHi/znwnKsQyCpTF4NSjz1uRCQEEnp/0P KT14fc5F2HXvA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7629C69A88; Wed, 11 Feb 2026 17:14:41 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 9kI5sP765OCi; Wed, 11 Feb 2026 17:14:41 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770855277; bh=nYZyBweUBkD5ELfd0caUfwwTKZKNRp0CeH0/ySlUng0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XHzRlfP36LbkiUwVvcxB2lmL6xxjgcG/NkdAoXbb4wMbLsvg76R+1xBPkt2DBWJZB TaMrUJfhGPiXdf1UeoviRYMElyvkSpSb7HWQSUvDeFKUe842zaKhlRuVy2h7dO+fu3 GdHCbnmdSJT9v+uobtJHlpjfN2yLS5eZKDT/guTvcXoVXrkVZk00VA9N6kLbKXjRxZ LfJj8m8ZG8wRjJ5WcNNkqrAU3YVW55PUR9Ls5JF+jlgcYI7bnZJrLZobef1WF08h6H Y9NQ64BHJDu/9/hgD7Ulih/EtI3MzOjTd5ZX6dPMRGEfMPGtLsSqdaiXcnZhOOMhmJ SqrSlCHT83hPg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 200D069AAC; Wed, 11 Feb 2026 17:14:37 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 11 Feb 2026 17:13:57 -0700 Message-ID: <20260212001410.1919749-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260212001410.1919749-1-sjg@u-boot.org> References: <20260212001410.1919749-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 5MW3LPHU575IC2OF6REQN5PO7PYGIXDX X-Message-ID-Hash: 5MW3LPHU575IC2OF6REQN5PO7PYGIXDX X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <simon.glass@canonical.com>, "Claude Opus 4 . 6" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 06/15] riscv: Exclude -static -pie from LDFLAGS for EFI apps List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/5MW3LPHU575IC2OF6REQN5PO7PYGIXDX/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
riscv: Add EFI-application support
|
|
Commit Message
Simon Glass
Feb. 12, 2026, 12:13 a.m. UTC
From: Simon Glass <simon.glass@canonical.com> The RISC-V LDFLAGS_u-boot includes -static -pie, which conflicts with the -shared flag needed for building EFI applications as shared objects. Guard these flags with ifndef CONFIG_EFI_APP so that EFI app builds can use their own linker flags. Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- arch/riscv/config.mk | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index 9f16dda92a0..123b5d24cca 100644 --- a/arch/riscv/config.mk +++ b/arch/riscv/config.mk @@ -27,7 +27,9 @@ endif PLATFORM_CPPFLAGS += -ffixed-x3 -fpic PLATFORM_RELFLAGS += -fno-common -ffunction-sections -fdata-sections +ifndef CONFIG_EFI_APP LDFLAGS_u-boot += --gc-sections -static -pie +endif EFI_CRT0 := crt0_riscv_efi.o EFI_RELOC := reloc_riscv_efi.o