From fc7233808a1d88db99a5181e1ee0f6865f8f5206 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Thu, 2 May 1991 04:11:40 +0000 Subject: Merge devo/bfd with GDB's bfd. Remove obstack.h to ../include and obstack.c to ../libiberty. Move COFF symbol swapping code to coffswap.c where GDB can call it but it won't be duplicated if we have N different COFF targets. Add support for traditional Unix core files (with a upage). This support is from an Ultrix port, but is probably slightly broken now. Improve bfd_release's of obstack'd items on error returns. gcc -Wall fixes. Handle section alignment slightly better in coff, and comment where it needs more work (on page-aligning virtual vs file addresses for DPAGED). Use set_tdata everywhere that tdata is set, to avoid "cast to the left of assignment" problems with some compilers. Move bfd_alloc, bfd_zalloc, bfd_realloc, and bfd_release into libbfd.h (from bfd.h) since they are internal routines. Remove the redundant suffix "_struct" from struct tags. Set symbol count early in file reading, before slurping in the syms, for GDB's use. --- bfd/liboasys.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bfd/liboasys.h') diff --git a/bfd/liboasys.h b/bfd/liboasys.h index 2c57e59..437035d 100644 --- a/bfd/liboasys.h +++ b/bfd/liboasys.h @@ -5,9 +5,9 @@ typedef struct asymbol symbol; } oasys_symbol_type; -typedef struct oasys_reloc_struct { +typedef struct oasys_reloc { arelent relent; - struct oasys_reloc_struct *next; + struct oasys_reloc *next; unsigned int symbol; } oasys_reloc_type; @@ -15,7 +15,7 @@ typedef struct oasys_reloc_struct { #define oasys_symbol(x) ((oasys_symbol_type *)(x)) #define oasys_per_section(x) ((oasys_per_section_type *)(x->used_by_bfd)) -typedef struct oasys_per_section_struct +typedef struct oasys_per_section { asection *section; bfd_byte *data; -- cgit v1.1