7d4385
From 7a4b49897c3bc63bdf680f8cb1d7a04ac932a4ff Mon Sep 17 00:00:00 2001
7d4385
From: Christos Zoulas <christos@zoulas.com>
7d4385
Date: Mon, 21 May 2018 16:32:34 +0000
7d4385
Subject: [PATCH 1/2] Add missing commas.
7d4385
7d4385
Upstream-commit: defcf7e39943780dd19ca002c478e52ec9ee5cbc
7d4385
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
7d4385
---
7d4385
 magic/Magdir/elf | 2 +-
7d4385
 1 file changed, 1 insertion(+), 1 deletion(-)
7d4385
7d4385
diff --git a/magic/Magdir/elf b/magic/Magdir/elf
7d4385
index 7c6ac8f..d5b2d02 100644
7d4385
--- a/magic/Magdir/elf
7d4385
+++ b/magic/Magdir/elf
7d4385
@@ -50,7 +50,7 @@
7d4385
 !:mime	application/x-executable
7d4385
 >16	leshort		3		shared object,
7d4385
 !:mime	application/x-sharedlib
7d4385
->16	leshort		4		core file
7d4385
+>16	leshort		4		core file,
7d4385
 !:mime	application/x-coredump
7d4385
 # Core file detection is not reliable.
7d4385
 #>>>(0x38+0xcc) string	>\0		of '%s'
7d4385
-- 
7d4385
2.20.1
7d4385
7d4385
7d4385
From 1c7aa7b88ef9f53e19a64961867427b0c1f04857 Mon Sep 17 00:00:00 2001
7d4385
From: Christos Zoulas <christos@zoulas.com>
7d4385
Date: Tue, 22 Jan 2019 16:28:42 +0000
7d4385
Subject: [PATCH 2/2] Add Linux PowerPC core offsets for Linux (which are off-by-4
7d4385
 of the regular offsets), after the regular Linux offsets so that there is no
7d4385
 confusion. The linux offsets are tried first since they are before, so on PPC
7d4385
 they should contain binary data and not match. Addition requested by: Ondrej
7d4385
 Dubaj/Kamil Dudka
7d4385
7d4385
Upstream-commit: 6367a7c9b476767a692f76e78e3b355dc9386e48
7d4385
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
7d4385
---
7d4385
 src/readelf.c | 5 ++++-
7d4385
 1 file changed, 4 insertions(+), 1 deletion(-)
7d4385
7d4385
diff --git a/src/readelf.c b/src/readelf.c
7d4385
index d96a538..c101483 100644
7d4385
--- a/src/readelf.c
7d4385
+++ b/src/readelf.c
7d4385
@@ -246,7 +246,10 @@ static const size_t	prpsoffsets32[] = {
7d4385
 	84,		/* SunOS 5.x (short name) */
7d4385
 
7d4385
 	44,		/* Linux (command line) */
7d4385
-	28,		/* Linux 2.0.36 (short name) */
7d4385
+	28,		/* Linux (short name) */
7d4385
+
7d4385
+	48,		/* Linux PowerPC (command line) */
7d4385
+	32,		/* Linux PowerPC (short name) */
7d4385
 
7d4385
 	8,		/* FreeBSD */
7d4385
 };
7d4385
-- 
7d4385
2.20.1
7d4385