* config.sub: add vxworks29k configuration.
[deliverable/binutils-gdb.git] / bfd / i386aout.c
CommitLineData
6a469027
JG
1/* BFD back-end for i386 a.out binaries.
2 Copyright (C) 1990, 1991 Free Software Foundation, Inc.
3
4This file is part of BFD, the Binary File Descriptor library.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
6a469027 20
7f90aa8b
ME
21/* The only 386 aout system we have here is GO32 from DJ.
22 These numbers make BFD work with that. If your aout 386 system
23 doesn't work with these, we'll have to split them into different
24 files. Send me (sac@cygnus.com) the runes to make it work on your
25 system, and I'll stick it in for the next release.
6a469027 26
7f90aa8b
ME
27 */
28#define TARGET_IS_LITTLE_ENDIAN_P
29#define N_HEADER_IN_TEXT(x) 0
30#define BYTES_IN_WORD 4
31#define ARCH 32
6a469027 32
7f90aa8b
ME
33#define N_TXTOFF(x) 0x20
34#define N_TXTADDR(x) (N_MAGIC(x)==ZMAGIC ? 0x1020 : 0)
6a469027 35
7f90aa8b
ME
36#define N_TXTSIZE(x) ((x).a_text)
37#if 0
38#define N_DATADDR(x) (N_MAGIC(x)==OMAGIC? (N_TXTADDR(x)+(x).a_text) : (SEGMENT_SIZE + ((0x1020+(x).a_text-1) & ~(SEGMENT_SIZE-1))))
39#define NOSUBEXECB
6a469027 40
7f90aa8b
ME
41#endif
42#define PAGE_SIZE 4096
43#define SEGMENT_SIZE 0x400000
44#define DEFAULT_ARCH bfd_arch_i386
6a469027 45
7f90aa8b
ME
46#define MY(OP) CAT(i386aout_,OP)
47#define TARGETNAME "a.out-i386"
48#define NO_WRITE_HEADER_KLUDGE 1
6a469027 49
7f90aa8b
ME
50#include "bfd.h"
51#include "sysdep.h"
52#include "libbfd.h"
53#include "libaout.h"
54static boolean MY(set_sizes)();
55#define MY_backend_data &MY(backend_data)
56static CONST struct aout_backend_data MY(backend_data) = {
57 0, /* zmagic contiguous */
58 1, /* text incl header */
59 0, /* text vma? */
60 MY(set_sizes),
61 1, /* exec header not counted */
6a469027 62};
7f90aa8b
ME
63
64#include "aout-target.h"
This page took 0.159602 seconds and 4 git commands to generate.