diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-19 21:13:58 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-19 21:13:58 +0000 |
commit | 47dc9b52c2ca81cd74c6970e66891335fde4382d (patch) | |
tree | 6bd9c039720043015723deb7d719082d192cb695 /bfd/cisco-core.c | |
parent | d34979a72deae0f720ce1bedef34e7899937da97 (diff) | |
download | gdb-47dc9b52c2ca81cd74c6970e66891335fde4382d.zip gdb-47dc9b52c2ca81cd74c6970e66891335fde4382d.tar.gz gdb-47dc9b52c2ca81cd74c6970e66891335fde4382d.tar.bz2 |
* bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
* libbfd.c (bfd_read, bfd_seek): Add comments regarding errors.
* cisco-core.c: New file.
* Makefile.in: Change accordingly.
* configure.in: Recognize cisco_core_vec.
* config/m68k-aout.mt (SELECT_VECS): Add cisco_core_vec.
* targets.c: Add cisco_core_vec.
* bfd-in2.h: Rebuilt.
Diffstat (limited to 'bfd/cisco-core.c')
-rw-r--r-- | bfd/cisco-core.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/bfd/cisco-core.c b/bfd/cisco-core.c index 6fec38a..b20e309 100644 --- a/bfd/cisco-core.c +++ b/bfd/cisco-core.c @@ -339,18 +339,7 @@ cisco_core_file_matches_executable_p (core_bfd, exec_bfd) #define cisco_bfd_is_local_label \ ((boolean (*) PARAMS ((bfd *, asection *))) bfd_false) -/* If somebody calls any byte-swapping routines, shoot them. */ -void -swap_abort() -{ - abort(); /* This way doesn't require any declaration for ANSI to fuck up */ -} -#define NO_GET ((bfd_vma (*) PARAMS (( const bfd_byte *))) swap_abort ) -#define NO_PUT ((void (*) PARAMS ((bfd_vma, bfd_byte *))) swap_abort ) -#define NO_SIGNED_GET \ - ((bfd_signed_vma (*) PARAMS ((const bfd_byte *))) swap_abort ) - -bfd_target trad_core_vec = +bfd_target cisco_core_vec = { "trad-core", bfd_target_unknown_flavour, @@ -364,12 +353,12 @@ bfd_target trad_core_vec = ' ', /* ar_pad_char */ 16, /* ar_max_namelen */ 3, /* minimum alignment power */ - NO_GET, NO_SIGNED_GET, NO_PUT, /* 64 bit data */ - NO_GET, NO_SIGNED_GET, NO_PUT, /* 32 bit data */ - NO_GET, NO_SIGNED_GET, NO_PUT, /* 16 bit data */ - NO_GET, NO_SIGNED_GET, NO_PUT, /* 64 bit hdrs */ - NO_GET, NO_SIGNED_GET, NO_PUT, /* 32 bit hdrs */ - NO_GET, NO_SIGNED_GET, NO_PUT, /* 16 bit hdrs */ + bfd_getb64, bfd_getb_signed_64, bfd_putb64, + bfd_getb32, bfd_getb_signed_32, bfd_putb32, + bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* data */ + bfd_getb64, bfd_getb_signed_64, bfd_putb64, + bfd_getb32, bfd_getb_signed_32, bfd_putb32, + bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* hdrs */ { /* bfd_check_format */ _bfd_dummy_target, /* unknown format */ |