dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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