| Message ID | 20260214021317.816170-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=1771035244; bh=wrvYawvPoCdDjkT8ocT0BeI/wiMiDoyuoikIqyvoJy0=; 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=RnJ2yVJU9W65KpG6D9kT7rAhvlwAFrSOW8m+FgYMC7xMK9dXdBJcJhu1pnwZz1tbk P5BOW+inhDFveyRTF4OhS8wZOfmmNZAT+T8+jWSnGRZL3gPGk2OvIlhvoVgtFkbGRg pPgztaz9SbvnUa64d1YJ1JhCb9TGHXGhpZ+P0iXLcqVGKrXMALe5IbuRl33jElbU/f 2KbtsWrGRe33YC9mL6qvcFqzqYGnZbgPg4b4EmwPktXNeCMoJFr3FWaALtyheXv7y8 pkJ1pAQchnYzFB/5b5IlBhf3m3KaPNXAXyDY9yJ++pH48+1m9ijAKi21C++PLoWbO3 WcYdElVwbg+QA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7284569B5B for <u-boot-concept@u-boot.org>; Fri, 13 Feb 2026 19:14:04 -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 ul5ooT_dEeqt for <u-boot-concept@u-boot.org>; Fri, 13 Feb 2026 19:14:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035244; bh=wrvYawvPoCdDjkT8ocT0BeI/wiMiDoyuoikIqyvoJy0=; 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=RnJ2yVJU9W65KpG6D9kT7rAhvlwAFrSOW8m+FgYMC7xMK9dXdBJcJhu1pnwZz1tbk P5BOW+inhDFveyRTF4OhS8wZOfmmNZAT+T8+jWSnGRZL3gPGk2OvIlhvoVgtFkbGRg pPgztaz9SbvnUa64d1YJ1JhCb9TGHXGhpZ+P0iXLcqVGKrXMALe5IbuRl33jElbU/f 2KbtsWrGRe33YC9mL6qvcFqzqYGnZbgPg4b4EmwPktXNeCMoJFr3FWaALtyheXv7y8 pkJ1pAQchnYzFB/5b5IlBhf3m3KaPNXAXyDY9yJ++pH48+1m9ijAKi21C++PLoWbO3 WcYdElVwbg+QA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 62E9869B58 for <u-boot-concept@u-boot.org>; Fri, 13 Feb 2026 19:14:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035242; bh=jppukV/5EtrGpVJC1MRUJ4zRDCwk6NV4lhPpL60/TCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t/KZR4Ooz2Cd81bAz6VLS21pGQZE+GsasQNjH5etnCHsNv2hTc5CI9SyTnK4mmzfG wNPMvdRA4+Sqo5qPKJMR/Lmk0gcj9iAgCV1FbvMuUU/p7ZH8Soi1lhll0WckSjB6dF ZG1c4sUZz1VJuINPd+MM4InHYkaf8S9k1qVrkeSdgW8BjJVYkFbtVB5nghf3FHRe+k Db6Y4VjqP5A9yoxvmPKms+kiDdvuQTYbQ8pXBiopa8yapOBnmi6GjLcxeb/gSfpqzm U5JVvwVK1si1VmbIWS+Y9Xv+3BqC8SvSa1lceccKaBnMOTwLNaWWqPdGuAI6f3lak8 FfkMK3FaifmSw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 54B6F69B58; Fri, 13 Feb 2026 19:14:02 -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 cedxDFlw3cCb; Fri, 13 Feb 2026 19:14:02 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035237; bh=r3gqs/JdQn6/XKmOUPxQhDSROKJ9IVyn3/PPNZTLZPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bYSSLBLJTJgCkCRDMEMrIKQBK7AA65S4k1oOFOjG2NEqnBo1YRZWLro6+VKXz07o/ SShSCX9SvMJZC53PTFnXOIWzvKu+LdLteUkg/b+zA5MhSI6LOOpNa24vcTfa1Ui+fI +xgry7uhot2l9j/BsLpXjNkfUyyFUSE5DouPmQ2dGL50E3UzZ6FGWYbWs8bOZvlnYG p9paXgZ7QruKkIr9HTWjYYY+CUID1HHaA36MINxYCjDugv7AXrgQup3Of+welszTG0 LzQ85nu5L6EBTGzUIrpS61IJzP7hu/oWnLEUryg0q8hYlJaU/vl7bWIK++2aFMTQCM yE57MbRfYLXSA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 6212C69A69; Fri, 13 Feb 2026 19:13:57 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 13 Feb 2026 19:13:00 -0700 Message-ID: <20260214021317.816170-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260214021317.816170-1-sjg@u-boot.org> References: <20260214021317.816170-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: WHFNJHHHAJO4SOXEZUPJBEAVCBECBK66 X-Message-ID-Hash: WHFNJHHHAJO4SOXEZUPJBEAVCBECBK66 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: 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/13] efi: Allow runtime relocation in library mode 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/WHFNJHHHAJO4SOXEZUPJBEAVCBECBK66/> 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: Support building examples for x86
|
|
Commit Message
Simon Glass
Feb. 14, 2026, 2:13 a.m. UTC
From: Simon Glass <simon.glass@canonical.com> EFI runtime relocation is needed even when U-Boot runs in library mode, so remove the early return that skips it when gd_ulib() is set. Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- lib/efi_loader/efi_runtime.c | 4 ---- 1 file changed, 4 deletions(-)
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index bd09d78d047..8c0301e3918 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -718,10 +718,6 @@ 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 running as a library */ - if (gd_ulib()) - return; - /* * Cache gd->relocaddr for use by the EFI runtime services after * the OS has taken over. On architectures where 'gd' is accessed