summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/bfd/binary.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-06-10 10:55:58 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-06-10 10:55:58 +0000
commita7e831079363e3bb45f3172f6e59ba48e335682b (patch)
treeee4324eac9a9d66f189fab60498ec42b8226b7fc /gnu/usr.bin/binutils/bfd/binary.c
parent467cb0a471d13c5186a6ee166e60b47c30da64e9 (diff)
Bring Cygnus versions into the trunk, keeping our local patches
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/binary.c')
-rw-r--r--gnu/usr.bin/binutils/bfd/binary.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/gnu/usr.bin/binutils/bfd/binary.c b/gnu/usr.bin/binutils/bfd/binary.c
index 09ee91e9a52..a480e464e96 100644
--- a/gnu/usr.bin/binutils/bfd/binary.c
+++ b/gnu/usr.bin/binutils/bfd/binary.c
@@ -149,10 +149,7 @@ mangle_name (abfd, suffix)
buf = (char *) bfd_alloc (abfd, size);
if (buf == NULL)
- {
- bfd_set_error (bfd_error_no_memory);
- return "";
- }
+ return "";
sprintf (buf, "_binary_%s_%s", bfd_get_filename (abfd), suffix);
@@ -177,10 +174,7 @@ binary_get_symtab (abfd, alocation)
syms = (asymbol *) bfd_alloc (abfd, BIN_SYMS * sizeof (asymbol));
if (syms == NULL)
- {
- bfd_set_error (bfd_error_no_memory);
- return false;
- }
+ return false;
/* Start symbol. */
syms[0].the_bfd = abfd;
@@ -219,12 +213,7 @@ static asymbol *
binary_make_empty_symbol (abfd)
bfd *abfd;
{
- asymbol *ret;
-
- ret = (asymbol *) bfd_alloc (abfd, sizeof (asymbol));
- if (ret == NULL)
- bfd_set_error (bfd_error_no_memory);
- return ret;
+ return (asymbol *) bfd_alloc (abfd, sizeof (asymbol));
}
#define binary_print_symbol _bfd_nosymbols_print_symbol
@@ -312,8 +301,8 @@ const bfd_target binary_vec =
{
"binary", /* name */
bfd_target_unknown_flavour, /* flavour */
- true, /* byteorder_big_p */
- true, /* header_byteorder_big_p */
+ BFD_ENDIAN_UNKNOWN, /* byteorder */
+ BFD_ENDIAN_UNKNOWN, /* header_byteorder */
EXEC_P, /* object_flags */
(SEC_ALLOC | SEC_LOAD | SEC_READONLY | SEC_CODE | SEC_DATA
| SEC_ROM | SEC_HAS_CONTENTS), /* section_flags */