mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
214f8f2392
* aoutx.h (some_aout_object_p): Restore old aout_data value if this type doesn't match. Don't lose if file sections have already been created. (set_arch_mach): Set reloc_entry_size. (slurp_symbol_table): Use bfd_h_get_{16,8} for reaeding symbol data. * hosts/i386bsd.h: New file. * configure.in: Recognize i[34]86-*-bsd host. * aout-target.h (callback, write_object_contents): Delete unused variables. * aoutx.h (reloc_type_lookup): New function. * aout-target.h (MY_reloc_howto_type_lookup): Use it as default. * aoutf1.h (sunos4_reloc_type_lookup): Deleted. (MY_reloc_howto_type_lookup): Don't define it. * aoutx.h (adjust_sizes_and_vmas): Don't bother with padding for OMAGIC files. (slurp_symbol_table): Use header byte order, not target byte order, for reading symbol data.
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/* BFD back-end for i386 a.out binaries under 386BSD.
|
|
Copyright (C) 1990, 1991 Free Software Foundation, Inc.
|
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
|
|
/* This data should be correct (or made correct) for the format used
|
|
under 386BSD (from Bill and Lynne Jolitz). It may be good for BSD/386
|
|
(from BSDI) as well; I haven't had a chance to test it. */
|
|
|
|
#define TARGET_IS_LITTLE_ENDIAN_P
|
|
#define N_HEADER_IN_TEXT(x) 0
|
|
#define BYTES_IN_WORD 4
|
|
#define ARCH 32
|
|
|
|
#define N_TXTOFF(x) (N_MAGIC(x) == ZMAGIC ? 0x1000 : 0x20)
|
|
#define N_TXTADDR(x) 0
|
|
|
|
#define N_TXTSIZE(x) ((x).a_text)
|
|
#define PAGE_SIZE 4096
|
|
#define SEGMENT_SIZE PAGE_SIZE
|
|
#define DEFAULT_ARCH bfd_arch_i386
|
|
|
|
#define MY(OP) CAT(i386bsd_,OP)
|
|
#define TARGETNAME "a.out-i386-bsd"
|
|
|
|
#include "bfd.h"
|
|
#include "sysdep.h"
|
|
#include "libbfd.h"
|
|
#include "libaout.h"
|
|
|
|
#include "aout-target.h"
|