aouthdr.h revision 259065
1/* 2 * Copyright (c) 2000 Robert Nordier 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in 12 * the documentation and/or other materials provided with the 13 * distribution. 14 * 15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS 16 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY 19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 21 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 23 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 25 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * 27 * $FreeBSD: releng/10.0/usr.sbin/kgzip/aouthdr.h 68313 2000-11-04 13:02:00Z rnordier $ 28 */ 29 30#include <a.out.h> 31#include "kgz.h" 32 33/* Relocatable header: part 0 */ 34struct kgz_aouthdr0 { 35 struct exec a; 36}; 37 38/* Symbol table entries */ 39#define KGZ__STNUM 2 40 41/* Symbol table strings */ 42#define KGZ__STR_KGZ "_kgz" 43#define KGZ__STR_KGZ_NDATA "_kgz_ndata" 44 45/* String table */ 46struct kgz__strtab { 47 unsigned long length; 48 char kgz[sizeof(KGZ__STR_KGZ)]; 49 char kgz_ndata[sizeof(KGZ__STR_KGZ_NDATA)]; 50}; 51 52/* Relocatable header: part 1 */ 53struct kgz_aouthdr1 { 54 struct nlist st[KGZ__STNUM]; 55 struct kgz__strtab strtab; 56}; 57 58extern const struct kgz_aouthdr0 aouthdr0; 59extern const struct kgz_aouthdr1 aouthdr1; 60