[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/15] modules: strip .llvm_addrsig sections and similar.
From: |
Vladimir 'phcoder' Serbinenko |
Subject: |
Re: [PATCH 02/15] modules: strip .llvm_addrsig sections and similar. |
Date: |
Fri, 24 May 2024 20:42:44 +0300 |
Reviewed-By: Vladimir Serbinenko
On Fri, May 24, 2024 at 2:06 PM Mate Kukri <mate.kukri@canonical.com> wrote:
>
> From: Peter Jones <pjones@redhat.com>
>
> 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 section 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>
> (cherry picked from commit 0f66524e94d3c4f4d669d75c2122b0f1036776ea)
> Signed-off-by: Jan Setje-Eilers <jan.setjeeilers@oracle.com>
> Signed-off-by: Mate Kukri <mate.kukri@canonical.com>
> ---
> grub-core/genmod.sh.in | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in
> index e57c4d920..337753c57 100644
> --- a/grub-core/genmod.sh.in
> +++ b/grub-core/genmod.sh.in
> @@ -57,8 +57,11 @@ if test x@TARGET_APPLE_LINKER@ != x1; then
> @TARGET_STRIP@ --strip-unneeded \
> -K grub_mod_init -K grub_mod_fini \
> -K _grub_mod_init -K _grub_mod_fini \
> - -R .note.gnu.gold-version -R .note.GNU-stack \
> + -R .note.GNU-stack \
> + -R .note.gnu.gold-version \
> + -R .note.gnu.property \
> -R .gnu.build.attributes \
> + -R '.llvm*' \
> -R .rel.gnu.build.attributes \
> -R .rela.gnu.build.attributes \
> -R .eh_frame -R .rela.eh_frame -R .rel.eh_frame \
> --
> 2.39.2
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'phcoder' Serbinenko
- [PATCH 03/15] modules: Don't allocate space for non-allocable sections., (continued)
- [PATCH 03/15] modules: Don't allocate space for non-allocable sections., Mate Kukri, 2024/05/24
- [PATCH 15/15] efi: Disallow fallback to legacy Linux loader when shim says NX is required., Mate Kukri, 2024/05/24
- [PATCH 14/15] efi: Use shim's loader protocol for EFI image verification and loading, Mate Kukri, 2024/05/24
- [PATCH 12/15] mm: Fixup bogus assumptions about types sizes in format strings, Mate Kukri, 2024/05/24
- [PATCH 08/15] nx: set the nx compatible flag in EFI grub images, Mate Kukri, 2024/05/24
- [PATCH 07/15] nx: set page permissions for loaded modules., Mate Kukri, 2024/05/24
- [PATCH 02/15] modules: strip .llvm_addrsig sections and similar., Mate Kukri, 2024/05/24
- Re: [PATCH 02/15] modules: strip .llvm_addrsig sections and similar.,
Vladimir 'phcoder' Serbinenko <=
- Re: [PATCH 00/15] UEFI NX support and NX Linux loader using shim loader protocol, Vladimir 'phcoder' Serbinenko, 2024/05/24