-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy path0622-Drop-ELF-notes-from-non-EFI-binary-too.patch
More file actions
40 lines (34 loc) · 1.11 KB
/
0622-Drop-ELF-notes-from-non-EFI-binary-too.patch
File metadata and controls
40 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 3cc78c50e672d81b7764d6ccafea736e7df729cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
<marmarek@invisiblethingslab.com>
Date: Mon, 13 Feb 2023 15:12:55 +0100
Subject: [PATCH] Drop ELF notes from non-EFI binary too
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The ELF is repacked from from 64bit to 32bit. With CET-related notes,
which use 64bit fields, this results in 32bit binary with corrupted
notes. Drop them all (except build-id and PVH note retained
explicitly).
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
xen/arch/x86/xen.lds.S | 7 -------
1 file changed, 7 deletions(-)
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index 26a23a7b0651..09c068db41cd 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -180,13 +180,6 @@ SECTIONS
#endif
#endif
-#ifndef EFI
- /* Retain these just for the purpose of possible analysis tools. */
- DECL_SECTION(.note) {
- *(.note.*)
- } PHDR(note) PHDR(text)
-#endif
-
_erodata = .;
. = ALIGN(SECTION_ALIGN);
--
2.48.1