Commit 413f1e13 authored by Peter Jones's avatar Peter Jones Committed by Daniel Kiper

.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
Signed-off-by: default avatarPeter Jones <>
Reviewed-by: default avatarDaniel Kiper <>
parent ebc825b5
......@@ -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 -R .note.GNU-stack \
-R \
-R \
-R \
-R .eh_frame -R .rela.eh_frame -R .rel.eh_frame \
-R .note -R .comment -R .ARM.exidx $tmpfile || exit 1
if ! test -z "${TARGET_OBJ2ELF}"; then
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment