Skip to content

Grub2 clang MBR image fix

Nicholas Vinson grub-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1gentpl.py: Remove .interp section from .img files.gentpl.py+1 -12 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchDaniel Kiper
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] Grub2 clang MBR image fix

When building grub, the files boot.img and diskboot.img are generated from ELF reference images and have the expectation that they will be 512 bytes inside each. However, when GRUB is built with clang, these files become bigger than 512-bytes because the name of the ELF interpreter is appended to each image due to Clang creating a '.interp' section in the ELF reference image.

This patch corrects that issue by updating the objcopy calls so the '.interp' section is not included when extracting the code from the ELF reference images.

Nicholas Vinson (1):
gentpl.py: Remove .interp section from .img files.

 gentpl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.39.0