From 47dc9b52c2ca81cd74c6970e66891335fde4382d Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 19 Mar 1994 21:13:58 +0000 Subject: * 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. --- bfd/ChangeLog | 5 ++++- bfd/cisco-core.c | 25 +++++++------------------ 2 files changed, 11 insertions(+), 19 deletions(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4f1fcfc..ba3dc0c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -14,7 +14,10 @@ Fri Mar 18 19:12:47 1994 Jim Kingdon (kingdon@lioth.cygnus.com) * 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. - * Makfile.in: Change accordingly. + * 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. Fri Mar 18 18:13:49 1994 Jeffrey A. Law (law@snake.cs.utah.edu) 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 */ -- cgit v1.1