File shim-change-debug-file-path.patch of Package shim
55
1
From ac7e88b1f2219ec2b09c9596e6f7d5911e5f6ffd Mon Sep 17 00:00:00 2001
2
From: Gary Lin <glin@suse.com>
3
Date: Thu, 4 Jan 2018 12:28:37 +0800
4
Subject: [PATCH] Use our own debug path
5
6
Signed-off-by: Gary Lin <glin@suse.com>
7
---
8
Make.defaults | 2 +-
9
fallback.c | 2 +-
10
shim.c | 2 +-
11
3 files changed, 3 insertions(+), 3 deletions(-)
12
13
diff --git a/Make.defaults b/Make.defaults
14
index bef3cb51..d88367e3 100644
15
--- a/Make.defaults
16
+++ b/Make.defaults
17
18
BOOTCSVNAME ?= BOOT$(ARCH_SUFFIX_UPPER).CSV
19
20
DEFINES += -DEFI_ARCH='L"$(ARCH_SUFFIX)"' \
21
- -DDEBUGDIR='L"/usr/lib/debug/usr/share/shim/$(ARCH_SUFFIX)-$(VERSION)$(DASHRELEASE)/"'
22
+ -DDEBUGDIR=L\"/usr/lib/debug/usr/share/efi/"$(ARCH)/"\"
23
24
ifneq ($(origin VENDOR_DB_FILE), undefined)
25
DEFINES += -DVENDOR_DB_FILE=\"$(VENDOR_DB_FILE)\"
26
diff --git a/fallback.c b/fallback.c
27
index 44b2d464..8e0de901 100644
28
--- a/fallback.c
29
+++ b/fallback.c
30
31
32
x = 1;
33
console_print(L"add-symbol-file "DEBUGDIR
34
- L"fallback.efi.debug %p -s .data %p\n",
35
+ L"fallback.debug %p -s .data %p\n",
36
&_etext, &_edata);
37
}
38
39
diff --git a/shim.c b/shim.c
40
index 1d539855..f8d2ba5f 100644
41
--- a/shim.c
42
+++ b/shim.c
43
44
FreePool(data);
45
46
console_print(L"add-symbol-file "DEBUGDIR
47
- L"shim.efi.debug 0x%08x -s .data 0x%08x\n",
48
+ L"shim.debug 0x%08x -s .data 0x%08x\n",
49
&_text, &_data);
50
51
console_print(L"Pausing for debugger attachment.\n");
52
--
53
2.29.2
54
55