Fix broken built-in ELF file handling, caused by missing prototypes

and use of off_t.  Correct the types of Elf64_Addr and Elf64_Off.
This commit is contained in:
John Polstra 1997-03-29 22:26:03 +00:00
parent fcb092603b
commit a8e37af87a
2 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -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;