From 21611032e14f407e8baf21ce190ea2b27c416917 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Tue, 21 May 2002 16:21:18 +0000 Subject: * objdump.c (dump_headers): Fix output formatting for ELF32 architectures in a BFD64 enabled toolchain. * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for non-ELF targets. --- 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 535e0cd..715d1cb 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -361,7 +361,11 @@ dump_headers (abfd) #ifndef BFD64 printf (_("Idx Name Size VMA LMA File off Algn")); #else - printf (_("Idx Name Size VMA LMA File off Algn")); + /* With BFD64, non-ELF returns -1 and wants always 64 bit addresses. */ + if (bfd_get_arch_size (abfd) == 32) + printf (_("Idx Name Size VMA LMA File off Algn")); + else + printf (_("Idx Name Size VMA LMA File off Algn")); #endif if (wide_output) -- cgit v1.1