2018-07-12 14:56:34 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-07-10 19:08:14 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Wed, 21 Feb 2018 15:20:29 -0500
|
|
|
|
Subject: [PATCH] .mod files: Strip annobin annotations and .eh_frame, and
|
|
|
|
their relocations
|
|
|
|
|
|
|
|
This way debuginfo built from the .module will still include this
|
|
|
|
information, but the final result won't have the data we don't actually
|
|
|
|
need in the modules, either on-disk, loaded at runtime, or in prebuilt
|
|
|
|
images.
|
|
|
|
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|
|
|
---
|
|
|
|
grub-core/genmod.sh.in | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in
|
|
|
|
index 3de06ee018f..1250589b3f5 100644
|
|
|
|
--- a/grub-core/genmod.sh.in
|
|
|
|
+++ b/grub-core/genmod.sh.in
|
|
|
|
@@ -58,6 +58,10 @@ if test x@TARGET_APPLE_LINKER@ != x1; then
|
|
|
|
-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 .gnu.build.attributes \
|
|
|
|
+ -R .rel.gnu.build.attributes \
|
|
|
|
+ -R .rela.gnu.build.attributes \
|
|
|
|
+ -R .eh_frame -R .rela.eh_frame -R .rel.eh_frame \
|
|
|
|
-R .note -R .comment -R .ARM.exidx $tmpfile || exit 1
|
|
|
|
fi
|
|
|
|
if ! test -z "${TARGET_OBJ2ELF}"; then
|