dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0010-strip-.eh_frame-section-from-arm64-efi-kernel.patch

4fe85b
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
4fe85b
From: Andrey Borzenkov <arvidjaar@gmail.com>
4fe85b
Date: Mon, 30 Dec 2013 12:56:19 +0000
4fe85b
Subject: [PATCH] strip .eh_frame section from arm64-efi kernel
4fe85b
4fe85b
Fixes grub-mkimage error "relocation 0x105 is not implemented yet."
4fe85b
---
4fe85b
 grub-core/Makefile.core.def | 2 +-
4fe85b
 ChangeLog                   | 4 ++++
4fe85b
 2 files changed, 5 insertions(+), 1 deletion(-)
4fe85b
4fe85b
diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def
4fe85b
index c916246de27..42443bc00b9 100644
4fe85b
--- a/grub-core/Makefile.core.def
4fe85b
+++ b/grub-core/Makefile.core.def
4fe85b
@@ -66,7 +66,7 @@ kernel = {
4fe85b
   arm_efi_stripflags       = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
4fe85b
 
4fe85b
   arm64_efi_ldflags          = '-Wl,-r,-d';
4fe85b
-  arm64_efi_stripflags       = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
4fe85b
+  arm64_efi_stripflags       = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame';
4fe85b
 
4fe85b
   i386_pc_ldflags          = '$(TARGET_IMG_LDFLAGS)';
4fe85b
   i386_pc_ldflags          = '$(TARGET_IMG_BASE_LDOPT),0x9000';
4fe85b
diff --git a/ChangeLog b/ChangeLog
4fe85b
index db843006df9..8c1ececa1ed 100644
4fe85b
--- a/ChangeLog
4fe85b
+++ b/ChangeLog
4fe85b
@@ -1,3 +1,7 @@
4fe85b
+2013-12-30  Andrey Borzenkov <arvidjaar@gmail.com>
4fe85b
+
4fe85b
+	* grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
4fe85b
+
4fe85b
 2013-12-30  Vladimir Serbinenko  <phcoder@gmail.com>
4fe85b
 
4fe85b
 	* NEWS: Add few missing entries. Correct existing ones.