diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-06-10 10:55:58 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-06-10 10:55:58 +0000 |
commit | a7e831079363e3bb45f3172f6e59ba48e335682b (patch) | |
tree | ee4324eac9a9d66f189fab60498ec42b8226b7fc /gnu/usr.bin/binutils/bfd/cisco-core.c | |
parent | 467cb0a471d13c5186a6ee166e60b47c30da64e9 (diff) |
Bring Cygnus versions into the trunk, keeping our local patches
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/cisco-core.c')
-rw-r--r-- | gnu/usr.bin/binutils/bfd/cisco-core.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/gnu/usr.bin/binutils/bfd/cisco-core.c b/gnu/usr.bin/binutils/bfd/cisco-core.c index adaa15c5ed3..a25115cc523 100644 --- a/gnu/usr.bin/binutils/bfd/cisco-core.c +++ b/gnu/usr.bin/binutils/bfd/cisco-core.c @@ -116,10 +116,7 @@ cisco_core_file_p (abfd) ((struct cisco_core_struct *) bfd_zmalloc (sizeof (struct cisco_core_struct))); if (abfd->tdata.cisco_core_data == NULL) - { - bfd_set_error (bfd_error_no_memory); - return NULL; - } + return NULL; switch ((crashreason) bfd_get_32 (abfd, crashinfo.reason)) { @@ -202,10 +199,7 @@ cisco_core_file_p (abfd) asect = (asection *) bfd_zmalloc (sizeof (asection)); if (asect == NULL) - { - bfd_set_error (bfd_error_no_memory); - goto error_return; - } + goto error_return; asect->name = ".reg"; asect->flags = SEC_HAS_CONTENTS; /* This can be bigger than the real size. Set it to the size of the whole @@ -221,10 +215,7 @@ cisco_core_file_p (abfd) We call it .data. */ asect = (asection *) bfd_zmalloc (sizeof (asection)); if (asect == NULL) - { - bfd_set_error (bfd_error_no_memory); - goto error_return; - } + goto error_return; asect->name = ".data"; asect->flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS; /* The size of memory is the size of the core file itself. */ @@ -277,8 +268,8 @@ const bfd_target cisco_core_vec = { "trad-core", bfd_target_unknown_flavour, - true, /* target byte order */ - true, /* target headers byte order */ + BFD_ENDIAN_BIG, /* target byte order */ + BFD_ENDIAN_BIG, /* target headers byte order */ (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED), |