1266278Simp/*
2266278Simp * Copyright (c) 2000 Robert Nordier
3266349Simp * All rights reserved.
4266349Simp *
5266349Simp * Redistribution and use in source and binary forms, with or without
6266349Simp * modification, are permitted provided that the following conditions
7266349Simp * are met:
8291613Sbdrewery * 1. Redistributions of source code must retain the above copyright
9266278Simp *    notice, this list of conditions and the following disclaimer.
10266278Simp * 2. Redistributions in binary form must reproduce the above copyright
11298487Sbdrewery *    notice, this list of conditions and the following disclaimer in
12298487Sbdrewery *    the documentation and/or other materials provided with the
13298487Sbdrewery *    distribution.
14287939Sbdrewery *
15287939Sbdrewery * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
16287939Sbdrewery * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17287939Sbdrewery * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18287939Sbdrewery * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY
19287939Sbdrewery * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20287939Sbdrewery * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21283767Ssjg * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22269203Ssjg * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23287939Sbdrewery * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24287939Sbdrewery * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25287939Sbdrewery * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26287939Sbdrewery *
27287939Sbdrewery * $FreeBSD$
28287941Sbdrewery */
29266278Simp
30287939Sbdrewery#include <a.out.h>
31287939Sbdrewery#include "kgz.h"
32287939Sbdrewery
33284598Ssjg/* Relocatable header: part 0 */
34287939Sbdrewerystruct kgz_aouthdr0 {
35291613Sbdrewery    struct exec a;
36287939Sbdrewery};
37284345Ssjg
38284598Ssjg/* Symbol table entries */
39284345Ssjg#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