mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +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.1 KiB
C
47 lines
1.1 KiB
C
#include <fcntl.h>
|
|
#include <errno.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <ctype.h>
|
|
#include <string.h>
|
|
#include <sys/file.h>
|
|
#include <machine/param.h>
|
|
|
|
#ifndef O_ACCMODE
|
|
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
|
#endif
|
|
|
|
#define SEEK_SET 0
|
|
#define SEEK_CUR 1
|
|
|
|
extern PTR EXFUN(malloc, (unsigned));
|
|
extern PTR EXFUN(realloc, (PTR, unsigned));
|
|
extern void EXFUN(free, (PTR));
|
|
|
|
#define HAVE_STRERROR
|
|
|
|
#define HOST_PAGE_SIZE NBPG
|
|
#define HOST_SEGMENT_SIZE NBPG
|
|
#define HOST_MACHINE_ARCH bfd_arch_i386
|
|
#define HOST_TEXT_START_ADDR 0 /* By inspection */
|
|
#define HOST_STACK_END_ADDR KERNBASE
|
|
|
|
/* EXACT TYPES */
|
|
typedef char int8e_type;
|
|
typedef unsigned char uint8e_type;
|
|
typedef short int16e_type;
|
|
typedef unsigned short uint16e_type;
|
|
typedef int int32e_type;
|
|
typedef unsigned int uint32e_type;
|
|
|
|
/* CORRECT SIZE OR GREATER */
|
|
typedef char int8_type;
|
|
typedef unsigned char uint8_type;
|
|
typedef short int16_type;
|
|
typedef unsigned short uint16_type;
|
|
typedef int int32_type;
|
|
typedef unsigned int uint32_type;
|
|
#include "fopen-same.h"
|