nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0114-Don-t-attempt-to-backtrace-on-grub_abort-for-grub-em.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Javier Martinez Canillas <javierm@redhat.com>
d9d99f
Date: Tue, 6 Feb 2018 11:16:28 +0100
d9d99f
Subject: [PATCH] Don't attempt to backtrace on grub_abort() for grub-emu
d9d99f
d9d99f
The emu platform doesn't have a grub_backtrace() implementation, so this
d9d99f
causes a build error. Don't attempt to call this when building grub-emu.
d9d99f
d9d99f
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
d9d99f
---
d9d99f
 grub-core/kern/misc.c | 2 +-
d9d99f
 1 file changed, 1 insertion(+), 1 deletion(-)
d9d99f
d9d99f
diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
b71686
index 04371ac49..636f97e1b 100644
d9d99f
--- a/grub-core/kern/misc.c
d9d99f
+++ b/grub-core/kern/misc.c
d9d99f
@@ -1103,7 +1103,7 @@ static void __attribute__ ((noreturn))
d9d99f
 grub_abort (void)
d9d99f
 {
d9d99f
 #ifndef GRUB_UTIL
d9d99f
-#if defined(__i386__) || defined(__x86_64__)
d9d99f
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(GRUB_MACHINE_EMU)
d9d99f
   grub_backtrace();
d9d99f
 #endif
d9d99f
 #endif