diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-09-29 07:12:59 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-09-29 07:12:59 +0000 |
commit | c5ec46b0e1935c8715a145c8b3ebb3b0c842031b (patch) | |
tree | 20a60f4c1599da98942f0a24b66588b5d646c510 /sys/arch/hppa/stand | |
parent | eb8584d8a6ec54ca530cb54b6dd2a141a712efd7 (diff) |
'acceppt gzip files for lif
Diffstat (limited to 'sys/arch/hppa/stand')
-rw-r--r-- | sys/arch/hppa/stand/mkboot/mkboot.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/hppa/stand/mkboot/mkboot.c b/sys/arch/hppa/stand/mkboot/mkboot.c index 65cf0181762..7da97bf28e1 100644 --- a/sys/arch/hppa/stand/mkboot/mkboot.c +++ b/sys/arch/hppa/stand/mkboot/mkboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkboot.c,v 1.4 1998/08/29 01:46:53 mickey Exp $ */ +/* $OpenBSD: mkboot.c,v 1.5 1998/09/29 07:12:58 mickey Exp $ */ /* * Copyright (c) 1990, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char rcsid[] = "$OpenBSD: mkboot.c,v 1.4 1998/08/29 01:46:53 mickey Exp $"; +static char rcsid[] = "$OpenBSD: mkboot.c,v 1.5 1998/09/29 07:12:58 mickey Exp $"; #endif /* not lint */ #endif @@ -251,6 +251,8 @@ putfile(from_file, to) entry = ntohl(elf_header.e_entry) + ntohl(elf_segments[elf_load_image_segment].p_offset) - ntohl(elf_segments[elf_load_image_segment].p_vaddr); + } else if (*(u_char *)&ex == 0x1f && ((u_char *)&ex)[1] == 0x8b) { + entry = 0; } else errx(1, "%s: bad magic number\n", from_file); |