On 2/14/26 02:21, Vladimir 'phcoder' Serbinenko wrote:
Can you explain why?
In my original attempt to fix the problem, I added the
AX_CHECK_LINK_FLAG macro to configure.ac.
In this patch series, the first thing I do is undo the commits I added
with my original attempt. I also undo commits that were added as a
result of that attempt (such as this one).
The root cause is the same; the macro grub_PROG_OBJCOPY_ABSOLUTE is run
unconditionally, and it tries to place .text at low addresses. ld.lld-21
does not allow that by default, so it fails to link.
I add a modified version of the original solution back with patch 8 of
this series to make grub_PROG_OBJCOPY_ABSOLUTE happy. Ideally, I would
only execute that macro for scenarios that need objcopy. That said, I
don't know what those scenarios would be other than i386-pc.
Moreover, this commit hides the real error message for one that can end
up being just as confusing. To avoid re-adding this potentially
problematic error message, I opted to add the macro directly to GRUB's
sources instead of reintroducing the autoconf-archive dependency.
Thanks,
Nicholas Vinson
Regards
Vladimir 'phcoder' Serbinenko
Le sam. 14 févr. 2026, 04:06, Nicholas Vinson <[email protected]
<mailto:[email protected]>> a écrit :
This reverts commit ac042f3f58d33ce9cd5ff61750f06da1a1d7b0eb.
Signed-off-by: Nicholas Vinson <[email protected]
<mailto:[email protected]>>
---
configure.ac <http://configure.ac> | 5 -----
1 file changed, 5 deletions(-)
diff --git a/configure.ac <http://configure.ac> b/configure.ac
<http://configure.ac>
index 2827ae2c1..dfef2e278 100644
--- a/configure.ac <http://configure.ac>
+++ b/configure.ac <http://configure.ac>
@@ -1792,11 +1792,6 @@ LIBS=""
# Defined in acinclude.m4.
grub_ASM_USCORE
grub_PROG_TARGET_CC
-
-# The error message produced by autoconf if autoconf-archive is not
installed is
-# quite misleading and not very helpful. So, try point people in
the right direction.
-m4_ifndef([AX_CHECK_LINK_FLAG], [m4_fatal([autoconf-archive is
missing. You must install it to generate the configure script.])])
-
if test "x$TARGET_APPLE_LINKER" != x1 ; then
AX_CHECK_LINK_FLAG([-Wl,--image-base,0x400000],
[TARGET_IMG_BASE_LDOPT="-Wl,--image-base"],
--
2.53.0
_______________________________________________
Grub-devel mailing list
[email protected] <mailto:[email protected]>
https://lists.gnu.org/mailman/listinfo/grub-devel <https://
lists.gnu.org/mailman/listinfo/grub-devel>
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel