]> granicus.if.org Git - file/commitdiff
Add Linux PowerPC core offsets for Linux (which are off-by-4 of the regular
authorChristos Zoulas <christos@zoulas.com>
Tue, 22 Jan 2019 16:28:42 +0000 (16:28 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 22 Jan 2019 16:28:42 +0000 (16:28 +0000)
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

index 8d57896645b191d4884c3354ce94c6e08f1dc9a2..a463be5b1a681f5d544ea88a904cddad52baddd9 100644 (file)
@@ -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 */
 };