Added Linux PowerPC core offsets for Linux + fixed bug #1161911

This commit is contained in:
Ondrej Dubaj 2019-01-24 09:43:35 +01:00
parent ff0750fa01
commit 4b5fdef060
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From b7dc8766080bf6189d6f15f7887c80ac456e01b9 Mon Sep 17 00:00:00 2001
From: Ondrej Dubaj <odubaj@redhat.com>
Date: Thu, 24 Jan 2019 09:37:52 +0100
Subject: [PATCH] Add Linux PowerPC core offsets for Linux + fixed bug #1161911
---
src/readelf.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/readelf.c b/src/readelf.c
index 909e414..642d6fd 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -262,7 +262,10 @@ static const size_t prpsoffsets32[] = {
84, /* SunOS 5.x (short name) */
44, /* Linux (command line) */
- 28, /* Linux 2.0.36 (short name) */
+ 28, /* Linux (short name) */
+
+ 48, /* Linux PowerPC (command line) */
+ 32, /* Linux PowerPC (short name) */
8, /* FreeBSD */
};
--
2.17.1

View File

@ -15,7 +15,7 @@
Summary: A utility for determining file types
Name: file
Version: 5.35
Release: 3%{?dist}
Release: 4%{?dist}
License: BSD
Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
@ -35,6 +35,9 @@ Patch5: file-5.35-qcow2-misleading.patch
# fixed bug missidentifying netpbm files (#856092)
Patch6: file-5.35-netpbm-misleading.patch
# added Linux PowerPC core offsets for Linux + fixed bug #1161911
Patch7: file-5.35-add-PowerPC-core-offsets.patch
URL: http://www.darwinsys.com/file/
Requires: file-libs = %{version}-%{release}
BuildRequires: zlib-devel
@ -211,6 +214,9 @@ cd %{py3dir}
%endif
%changelog
* Thu Jan 24 2019 Ondrej Dubaj <odubaj@redhat.com> - 5.35-4
- Added Linux PowerPC core offsets for Linux + fixed bug #1161911
* Thu Jan 24 2019 Ondrej Dubaj <odubaj@redhat.com> - 5.35-3
- Fixed bug missidentifying netpbm files (#856092)