Message ID | 20250904130459.848794-13-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=1756991161; bh=0nkPqCcfc4JL/bRj6/xxNY/qFn1DaAH9AQa67lXx+ZY=; 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=w8swXjXvkjsOg/dqM5998DS+ZcG5B2e8yFPi1mJPx8hZIdueJUtKFspeIFP3pFlsL VCQSu+ITnSMUkKTqU7VDyvMpb3RZJ1dBJ4LnUOB9TAV9P7juGg+pYwpaQe4TAfvla8 Ary6f8liD8LyuhxWuNnnsYGCsBPNfXQgqe88cfY1Ec3nMYN9DgiZvfGnYTsod9xaA8 T0OQlKhY7SllU6AJ18432kEHR8Waq9mNOs3QR+Ql8mEljS4WegHGDdAgYp+tXZ/UxB EsZuxjTz+vGixfaugm8uGciMrInoPS07ZcnTy0oc3TrPnOgOeifMMlx6N0fzLPcNgs gI9COEQQKvBBQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D6F3F6795E for <u-boot-concept@u-boot.org>; Thu, 4 Sep 2025 07:06:01 -0600 (MDT) 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 RnPOsv_wiOe5 for <u-boot-concept@u-boot.org>; Thu, 4 Sep 2025 07:06:01 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756991161; bh=0nkPqCcfc4JL/bRj6/xxNY/qFn1DaAH9AQa67lXx+ZY=; 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=w8swXjXvkjsOg/dqM5998DS+ZcG5B2e8yFPi1mJPx8hZIdueJUtKFspeIFP3pFlsL VCQSu+ITnSMUkKTqU7VDyvMpb3RZJ1dBJ4LnUOB9TAV9P7juGg+pYwpaQe4TAfvla8 Ary6f8liD8LyuhxWuNnnsYGCsBPNfXQgqe88cfY1Ec3nMYN9DgiZvfGnYTsod9xaA8 T0OQlKhY7SllU6AJ18432kEHR8Waq9mNOs3QR+Ql8mEljS4WegHGDdAgYp+tXZ/UxB EsZuxjTz+vGixfaugm8uGciMrInoPS07ZcnTy0oc3TrPnOgOeifMMlx6N0fzLPcNgs gI9COEQQKvBBQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C604A67959 for <u-boot-concept@u-boot.org>; Thu, 4 Sep 2025 07:06:01 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756991159; bh=8N2Km7HkILa+HYEHOJ8ZfgVeSU72K59CZXFKWB7/JKk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DNa/3hWua5E54KhgjGp1kUV+TPq0fe5RQYsw6OLc1pr2k3RdW8DKwq5jmlbCbxHL6 3AAjrMDdJCirQ5xOcrUXdE6zmicfeHVBhATbcHvZvMcpUa20fEqi61zewuImcnAVkS iG11GdG9vE9sRx3WhqfzJZt3qeDcHPNbrkZOIg3CyAasTmSfanEYuFhhyoGr3TDTin z7XAjZ5fn5/QMPIUwgFDNvoRKMizvSL71arzIusxSotrza/tyen0RA/gwK2joeMEEf wK5D97BO4Ksgi7hel3wVybP+FKfgng9pYeLItwA8iMsfqXSZLztMH+Ulko/2bC+5kA FVlMS7ac0h/og== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6835467959; Thu, 4 Sep 2025 07:05:59 -0600 (MDT) 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 zbWEUeU8ZIIf; Thu, 4 Sep 2025 07:05:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756991158; bh=1s8cSNJ4joOXL4zNiVteJyMixFvMRDn+8YX2NNmsDHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KhmyVQYW05JOSvhNcb0g7Opu7nz3en3UU4H6HgsRUcqDIkMaSMXhQ2YQ8xlmcuIIg ddjL0H6EBkKH0aLTuYiMwiP9ZnngmBixMAgOvgxvQFmnCjWPHZlXbSVDh/8Y6bpmsI DUY9MKWFus0MeDubdaqcabcB2UsxvFl9EiWBSju3EFK147LwuSGTBYPbyQdBvrooae rGyMiBPYu+NbNhF+T++T7BrJdkiovBhX6X6oxm4YckoinDYny0je64QB37RRV52Gpv Ta3MI1oTnYrkm+VOiygAZOLgtLG1d6V5/cfn4IiAlIicGBxYgvYq1UxuobptMqDItJ 1fFwok+dRRtzw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 02617678BF; Thu, 4 Sep 2025 07:05:57 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Thu, 4 Sep 2025 07:04:45 -0600 Message-ID: <20250904130459.848794-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250904130459.848794-1-sjg@u-boot.org> References: <20250904130459.848794-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: FFXDXG7SQRPBVNPB6CMACUECEHIPDJVX X-Message-ID-Hash: FFXDXG7SQRPBVNPB6CMACUECEHIPDJVX 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 <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 12/18] ulib: efi: Disable relocation or runtime-services 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/FFXDXG7SQRPBVNPB6CMACUECEHIPDJVX/> 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 |
ulib: Introduce building U-Boot as a shared library
|
|
Commit Message
Simon Glass
Sept. 4, 2025, 1:04 p.m. UTC
From: Simon Glass <sjg@chromium.org> This cannot work with the shared library at present, since the symbols are not defined. Disable it for now. Signed-off-by: Simon Glass <sjg@chromium.org> --- lib/efi_loader/efi_runtime.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 58c3ea1870f..2bd2582ede5 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -717,6 +717,10 @@ static __efi_runtime void efi_relocate_runtime_table(ulong offset) /* Relocate EFI runtime to uboot_reloc_base = offset */ void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map) { + /* Skip EFI runtime relocation when building as a library */ + if (IS_ENABLED(CONFIG_ULIB)) + return; + #ifdef IS_RELA struct elf_rela *rel = (void *)__efi_runtime_rel_start; #else