aouthdr.c revision 68313
1294113Sbapt/* 2241675Suqs * Copyright (c) 2000 Robert Nordier 3241675Suqs * All rights reserved. 4241675Suqs * 5241675Suqs * Redistribution and use in source and binary forms, with or without 6241675Suqs * modification, are permitted provided that the following conditions 7241675Suqs * are met: 8241675Suqs * 1. Redistributions of source code must retain the above copyright 9241675Suqs * notice, this list of conditions and the following disclaimer. 10241675Suqs * 2. Redistributions in binary form must reproduce the above copyright 11241675Suqs * notice, this list of conditions and the following disclaimer in 12241675Suqs * the documentation and/or other materials provided with the 13241675Suqs * distribution. 14241675Suqs * 15241675Suqs * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS 16241675Suqs * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17241675Suqs * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18241675Suqs * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY 19275432Sbapt * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20275432Sbapt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 21241675Suqs * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22241675Suqs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 23279527Sbapt * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24241675Suqs * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 25241675Suqs * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26241675Suqs * 27241675Suqs * $FreeBSD: head/usr.sbin/kgzip/aouthdr.c 68313 2000-11-04 13:02:00Z rnordier $ 28241675Suqs */ 29241675Suqs 30241675Suqs#include <stddef.h> 31241675Suqs#include "aouthdr.h" 32241675Suqs 33241675Suqs#define KGZ_FIX_NSIZE 0 /* Run-time fixup */ 34241675Suqs 35294113Sbaptconst struct kgz_aouthdr0 aouthdr0 = { 36241675Suqs /* a.out header */ 37 { 38 MID_I386 << 020 | OMAGIC, /* a_midmag */ 39 0, /* a_text */ 40 sizeof(struct kgz_hdr) + KGZ_FIX_NSIZE, /* a_data */ 41 0, /* a_bss */ 42 sizeof(struct nlist) * KGZ__STNUM, /* a_syms */ 43 0, /* a_entry */ 44 0, /* a_trsize */ 45 0 /* a_drsize */ 46 } 47}; 48 49const struct kgz_aouthdr1 aouthdr1 = { 50 /* Symbol table */ 51 { 52 { 53 { 54 (char *)offsetof(struct kgz__strtab, 55 kgz) /* n_un */ 56 }, 57 N_DATA | N_EXT, /* n_type */ 58 AUX_OBJECT, /* n_other */ 59 0, /* n_desc */ 60 0 /* n_value */ 61 }, 62 { 63 { 64 (char *)offsetof(struct kgz__strtab, 65 kgz_ndata) /* n_un */ 66 }, 67 N_DATA | N_EXT, /* n_type */ 68 AUX_OBJECT, /* n_other */ 69 0, /* n_desc */ 70 sizeof(struct kgz_hdr) /* n_value */ 71 } 72 }, 73 /* String table */ 74 { 75 sizeof(struct kgz__strtab), /* length */ 76 KGZ__STR_KGZ, /* kgz */ 77 KGZ__STR_KGZ_NDATA /* kgz_ndata */ 78 } 79}; 80