[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 7/7] .mod files: Strip annobin annotations and .eh_frame, and
From: |
Peter Jones |
Subject: |
[PATCH v3 7/7] .mod files: Strip annobin annotations and .eh_frame, and their relocations |
Date: |
Wed, 21 Feb 2018 15:20:29 -0500 |
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 <address@hidden>
---
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 address@hidden@ != 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
--
2.15.0
- Re: [PATCH 1/2] mkimage: avoid copying relocations for sections that won't be copied., (continued)
- Re: [PATCH 1/2] mkimage: avoid copying relocations for sections that won't be copied., Vladimir 'phcoder' Serbinenko, 2018/02/15
- Re: [PATCH 1/2] mkimage: avoid copying relocations for sections that won't be copied., Daniel Kiper, 2018/02/20
- Re: [PATCH v2 1/3] mkimage: refactor a bunch of section data into a struct., Daniel Kiper, 2018/02/21
- Re: [PATCH v2 1/3] mkimage: refactor a bunch of section data into a struct., Peter Jones, 2018/02/21
- [PATCH v3 1/7] aout.h: Fix missing include., Peter Jones, 2018/02/21
- [PATCH v3 7/7] .mod files: Strip annobin annotations and .eh_frame, and their relocations,
Peter Jones <=
- Re: [PATCH v3 7/7] .mod files: Strip annobin annotations and .eh_frame, and their relocations, Daniel Kiper, 2018/02/23
- Re: [PATCH v3 7/7] .mod files: Strip annobin annotations and .eh_frame, and their relocations, Daniel Kiper, 2018/02/23
- [PATCH v3 3/7] mkimage: rename a couple of things to be less confusing later., Peter Jones, 2018/02/21
- Re: [PATCH v3 3/7] mkimage: rename a couple of things to be less confusing later., Daniel Kiper, 2018/02/23
- [PATCH v3 2/7] mkimage: make it easier to run syntax checkers on grub-mkimagexx.c, Peter Jones, 2018/02/21
- Re: [PATCH v3 2/7] mkimage: make it easier to run syntax checkers on grub-mkimagexx.c, Daniel Kiper, 2018/02/23
- [PATCH v3 4/7] mkimage: make locate_sections() set up vaddresses as well., Peter Jones, 2018/02/21
- Re: [PATCH v3 4/7] mkimage: make locate_sections() set up vaddresses as well., Daniel Kiper, 2018/02/23
- [PATCH v3 5/7] mkimage: refactor a bunch of section data into a struct., Peter Jones, 2018/02/21
- Re: [PATCH v3 5/7] mkimage: refactor a bunch of section data into a struct., Daniel Kiper, 2018/02/23