]> git.ipfire.org Git - thirdparty/grub.git/commit
modules: Strip .llvm_addrsig sections and similar
authorPeter Jones <pjones@redhat.com>
Wed, 9 Oct 2024 08:16:37 +0000 (09:16 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 10 Oct 2024 11:18:00 +0000 (13:18 +0200)
commit2b79d550f331b7d275da7994eaf4d774a5abb5b3
tree2ab51c0f0c020b2d61372c00ab156ee7aa32e233
parent246c82cdae4be6121ad3cede2f2c8995aebf752f
modules: Strip .llvm_addrsig sections and similar

Currently GRUB modules built with Clang or GCC have several sections
which we don't actually need or support. We already have a list of
sections to skip in genmod.sh and this patch adds the following
sections to that list (as well as a few newlines):
  - .note.gnu.property
  - .llvm*

Note that the glob there won't work without a new enough linker but the
failure is just reversion to the status quo. So, that's not a big problem.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Jan Setje-Eilers <jan.setjeeilers@oracle.com>
Signed-off-by: Mate Kukri <mate.kukri@canonical.com>
Reviewed-By: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/genmod.sh.in