diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-18 09:45:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-18 09:45:47 +0000 |
commit | 41ae123ec2d77615cd0b0476ff62564bd7a4865f (patch) | |
tree | ba6a57d3a8d7d725a5e0ae64e8401ed3bea0efb9 /sys/arch/alpha/stand/headersize.c | |
parent | 7a0b7f798c45842a34a4c6413f45e1b3824154a5 (diff) |
sync to 0616, retaining local diffs
Diffstat (limited to 'sys/arch/alpha/stand/headersize.c')
-rw-r--r-- | sys/arch/alpha/stand/headersize.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/alpha/stand/headersize.c b/sys/arch/alpha/stand/headersize.c index f586ff2d734..23d64a5556d 100644 --- a/sys/arch/alpha/stand/headersize.c +++ b/sys/arch/alpha/stand/headersize.c @@ -1,7 +1,7 @@ -/* $NetBSD: headersize.c,v 1.1 1995/11/23 02:38:59 cgd Exp $ */ +/* $NetBSD: headersize.c,v 1.3.4.1 1996/06/13 18:35:33 cgd Exp $ */ /* - * Copyright (c) 1995 Carnegie-Mellon University. + * Copyright (c) 1995, 1996 Carnegie-Mellon University. * All rights reserved. * * Author: Chris G. Demetriou @@ -29,19 +29,20 @@ #include <sys/types.h> #include <sys/exec.h> -#include <machine/coff.h> +#include <sys/exec_ecoff.h> #define HDR_BUFSIZE 512 main() { char buf[HDR_BUFSIZE]; + struct ecoff_exechdr *execp; if (read(0, &buf, HDR_BUFSIZE) < HDR_BUFSIZE) { perror("read"); exit(1); } + execp = (struct ecoff_exechdr *)buf; - printf("%d\n", N_COFFTXTOFF(*((struct filehdr *)buf), - *((struct aouthdr *)(buf + sizeof(struct filehdr)))) ); + printf("%d\n", ECOFF_TXTOFF(execp)); } |