This commit is contained in:
tsutsui 2007-12-29 17:54:41 +00:00
parent 7bfee5be48
commit e5434d17a5
4 changed files with 9 additions and 27 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: loadfile.c,v 1.26 2007/11/24 13:20:55 isaki Exp $ */
/* $NetBSD: loadfile.c,v 1.27 2007/12/29 17:54:41 tsutsui Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -95,10 +95,7 @@
* Fill in marks
*/
int
loadfile(fname, marks, flags)
const char *fname;
u_long *marks;
int flags;
loadfile(const char *fname, u_long *marks, int flags)
{
int fd, error;
@ -124,10 +121,7 @@ loadfile(fname, marks, flags)
* Fill in marks.
*/
int
fdloadfile(fd, marks, flags)
int fd;
u_long *marks;
int flags;
fdloadfile(int fd, u_long *marks, int flags)
{
union {
#ifdef BOOT_ECOFF

View File

@ -1,4 +1,4 @@
/* $NetBSD: loadfile_aout.c,v 1.11 2007/12/03 09:51:30 isaki Exp $ */
/* $NetBSD: loadfile_aout.c,v 1.12 2007/12/29 17:54:42 tsutsui Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -92,11 +92,7 @@
#ifdef BOOT_AOUT
int
loadfile_aout(fd, x, marks, flags)
int fd;
struct exec *x;
u_long *marks;
int flags;
loadfile_aout(int fd, struct exec *x, u_long *marks, int flags)
{
u_long entry = x->a_entry;
paddr_t aoutp = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: loadfile_ecoff.c,v 1.10 2007/12/03 09:51:30 isaki Exp $ */
/* $NetBSD: loadfile_ecoff.c,v 1.11 2007/12/29 17:54:42 tsutsui Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -58,11 +58,7 @@
#ifdef BOOT_ECOFF
int
loadfile_coff(fd, coff, marks, flags)
int fd;
struct ecoff_exechdr *coff;
u_long *marks;
int flags;
loadfile_coff(int fd, struct ecoff_exechdr *coff, u_long *marks, int flags)
{
paddr_t offset = marks[MARK_START];
paddr_t minp = ~0, maxp = 0, pos;

View File

@ -1,4 +1,4 @@
/* $NetBSD: loadfile_elf32.c,v 1.20 2007/12/03 09:51:30 isaki Exp $ */
/* $NetBSD: loadfile_elf32.c,v 1.21 2007/12/29 17:54:42 tsutsui Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -263,11 +263,7 @@ externalize_shdr(Elf_Byte bo, Elf_Shdr *shdr)
#endif /* _STANDALONE */
int
ELFNAMEEND(loadfile)(fd, elf, marks, flags)
int fd;
Elf_Ehdr *elf;
u_long *marks;
int flags;
ELFNAMEEND(loadfile)(int fd, Elf_Ehdr *elf, u_long *marks, int flags)
{
Elf_Shdr *shp;
Elf_Phdr *phdr;