On Mon, Feb 09, 2026 at 07:43:28PM -0500, Nicholas Vinson wrote:
> Starting with ld.llvm-21, any attempt create a non-relocatable binary and set
> one more secton addresses below 0x400000 results in a linker error. 
> Furthermore,
> the differences between ld.bfd and ld.lld made finding a proper set of
> command-line flags tht worked with both linkers and bypass the image base
> address restriction difficult. Therefore, the approach of using a custom 
> linker
> script was adopted to solve the issue.
>
> This approach was tested using:
>
> ../configure CC=clang CXX=clang++ LDFLAGS="-fuse-ld=lld" 
> TARGET_LDFLAGS="-fuse-ld=lld" --with-platform=pc
> ../configure CC=clang CXX=clang++ --with-platform=pc (both with ld.lld as the 
> default and ld.bfd as the default)
> ../configure CC=gcc CXX=g++ --with-platform=pc
>
> and a VM was used for testing. To build the disk images the VM was booted 
> with,
> the following scripts were used:

[...]

> In all cases, the VM successfully booted to the standard GRUB prompt.
>
> Nicholas Vinson (8):
>   i386/pc/int.h: conditionally apply regparm attr.
>   grub-core: Update kernel image generation
>   i386-cygwin-img-ld.sc -> i386-cygwin-img.lds
>   Revert "configure: Print a more helpful error if autoconf-archive is
>     not installed"
>   Revert "configure: Check linker for --image-base support"
>   Revert "INSTALL: Add note that the GNU Autoconf Archive may be needed"
>   configure: drop -Ttext checks for i386-pc

For all these patches Reviewed-by: Daniel Kiper <[email protected]>...

>   C23 fixes: fix strchr() and strrchr() handling

It seems to me that this patch does more than commit message says.
I think it has to be split into more parts or commit message has to be
improved.

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to