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