All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicholas Vinson <nvinson234@gmail.com>
To: grub-devel@gnu.org
Cc: Nicholas Vinson <nvinson234@gmail.com>
Subject: [PATCH 0/1] Grub2 clang MBR image fix
Date: Fri, 13 Jan 2023 02:56:34 -0500	[thread overview]
Message-ID: <cover.1673596114.git.nvinson234@gmail.com> (raw)

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(-)

-- 
2.39.0



             reply	other threads:[~2023-01-13  7:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-13  7:56 Nicholas Vinson [this message]
2023-01-13  7:56 ` [PATCH 1/1] gentpl.py: Remove .interp section from .img files Nicholas Vinson
2023-01-13  8:12   ` Vladimir 'phcoder' Serbinenko
2023-01-17 17:46   ` Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1673596114.git.nvinson234@gmail.com \
    --to=nvinson234@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.