From 38aa863c90c26886ddf0de41ef634c4a2ceef8e5 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 23 Jan 1996 17:58:32 +0000 Subject: * objdump.c (disassemble_data): Handle unknown endianness. --- binutils/objdump.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'binutils/objdump.c') diff --git a/binutils/objdump.c b/binutils/objdump.c index 3279eb7..19b1243 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -863,8 +863,12 @@ disassemble_data (abfd) disasm_info.mach = bfd_get_mach (abfd); if (bfd_big_endian (abfd)) disasm_info.endian = BFD_ENDIAN_BIG; - else + else if (bfd_little_endian (abfd)) disasm_info.endian = BFD_ENDIAN_LITTLE; + else + /* ??? Aborting here seems too drastic. We could default to big or little + instead. */ + disasm_info.endian = BFD_ENDIAN_UNKNOWN; for (section = abfd->sections; section != (asection *) NULL; -- cgit v1.1