]> git.ipfire.org Git - thirdparty/grub.git/commit
configure: Check linker for --image-base support
authorNicholas Vinson <nvinson234@gmail.com>
Wed, 19 Nov 2025 00:38:07 +0000 (19:38 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 20 Nov 2025 16:03:27 +0000 (17:03 +0100)
commit1a5417f39a0ccefcdd5440f2a67f84d2d2e26960
tree61065c4189344b57682e8ee2eeea088a8de51e14
parentf41c896d2345bee41e4db9208e1dbb7f8d621c02
configure: Check linker for --image-base support

In several scenarios, configure tests assume it's safe to use
"-Wl,-Ttext,<address>", but starting with ld.lld-21, blindly using that
flag may result in configure-test failures due to ld.lld failing to
link. The failure is because ld.lld-21 no longer allows the specified
address is less than the base address.

However, ld.lld-21+ and ld.bfd-2.44+ both provide support for the
--image-base flag making it preferable over the older -Ttext flag.

Fixes: https://savannah.gnu.org/bugs/?67662
Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
acinclude.m4
configure.ac