summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-03-29 22:26:03 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-03-29 22:26:03 +0000
commita8e37af87ad2f54cde5fe456799fbfd3c3ad728a (patch)
tree98d1cdbaacc2703585203184aec6c46c009b9430
parentfcb092603bef126506122a6ec6af9f627e1bb825 (diff)
Notes
-rw-r--r--usr.bin/file/readelf.c4
-rw-r--r--usr.bin/file/readelf.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/file/readelf.c b/usr.bin/file/readelf.c
index a007cca3ca57..2ae533b2bea7 100644
--- a/usr.bin/file/readelf.c
+++ b/usr.bin/file/readelf.c
@@ -11,6 +11,10 @@
#include "readelf.h"
#include "file.h"
+static void doshn __P((int, off_t, int, size_t, char *));
+static void dophn_exec __P((int, off_t, int, size_t, char *));
+static void dophn_core __P((int, off_t, int, size_t, char *));
+
static void
doshn(fd, off, num, size, buf)
int fd;
diff --git a/usr.bin/file/readelf.h b/usr.bin/file/readelf.h
index c4b42d7eb13f..853eed600f95 100644
--- a/usr.bin/file/readelf.h
+++ b/usr.bin/file/readelf.h
@@ -1,6 +1,6 @@
/*
* readelf.h
- * @(#)$Id: readelf.h,v 1.4 1997/01/15 17:23:24 christos Exp $
+ * @(#)$Id: readelf.h,v 1.1.1.1 1997/03/18 17:58:55 mpp Exp $
*
* Provide elf data structures for non-elf machines, allowing file
* non-elf hosts to determine if an elf binary is stripped.
@@ -16,9 +16,9 @@ typedef unsigned int Elf32_Word;
typedef unsigned char Elf32_Char;
/* XXX: We need 64 bit numbers here */
-typedef unsigned int Elf64_Addr[2];
+typedef u_quad_t Elf64_Addr;
typedef unsigned short Elf64_Half;
-typedef unsigned int Elf64_Off[2];
+typedef u_quad_t Elf64_Off;
typedef unsigned int Elf64_Word;
typedef unsigned char Elf64_Char;