source: trunk/src/binutils/bfd/host-aout.c@ 315

Last change on this file since 315 was 100, checked in by bird, 23 years ago

review. Added some comments and #ifs.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.5 KB
Line 
1/* BFD backend for local host's a.out binaries
2 Copyright 1990, 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
3 Written by Cygnus Support. Probably John Gilmore's fault.
4
5This file is part of BFD, the Binary File Descriptor library.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20
21#include "bfd.h"
22#include "sysdep.h"
23#include "libbfd.h"
24
25#define ARCH_SIZE 32
26
27/* When porting to a new system, you must supply:
28
29 HOST_PAGE_SIZE (optional)
30 HOST_SEGMENT_SIZE (optional -- defaults to page size)
31 HOST_MACHINE_ARCH (optional)
32 HOST_MACHINE_MACHINE (optional)
33 HOST_TEXT_START_ADDR (optional)
34 HOST_STACK_END_ADDR (not used, except by trad-core ???)
35 HOST_BIG_ENDIAN_P (required -- define if big-endian)
36
37 in the ./hosts/h-systemname.h file. */
38
39#ifndef __EMX__ /* r=bird: Code was initially removed. Is this __EMX__ or EMX
40 * and why don't we include it? anything to do with sysdep.h? */
41#ifdef TRAD_HEADER
42#include TRAD_HEADER
43#endif
44#endif /* !__EMX__ */
45
46#ifdef HOST_PAGE_SIZE
47#define TARGET_PAGE_SIZE HOST_PAGE_SIZE
48#endif
49
50#ifdef HOST_SEGMENT_SIZE