From 6367a7c9b476767a692f76e78e3b355dc9386e48 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 22 Jan 2019 16:28:42 +0000 Subject: [PATCH] Add Linux PowerPC core offsets for Linux (which are off-by-4 of the regular offsets), after the regular Linux offsets so that there is no confusion. The linux offsets are tried first since they are before, so on PPC they should contain binary data and not match. Addition requested by: Ondrej Dubaj/Kamil Dudka --- src/readelf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/readelf.c b/src/readelf.c index 8d578966..a463be5b 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -27,7 +27,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: readelf.c,v 1.157 2019/01/02 19:44:14 christos Exp $") +FILE_RCSID("@(#)$File: readelf.c,v 1.158 2019/01/22 16:28:42 christos Exp $") #endif #ifdef BUILTIN_ELF @@ -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.50.1