mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-01 05:55:23 +08:00
* 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.
This commit is contained in:
parent
41241523bf
commit
21611032e1
@ -1,3 +1,8 @@
|
||||
2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||
|
||||
* bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
|
||||
non-ELF targets.
|
||||
|
||||
2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||
|
||||
* elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
|
||||
|
@ -749,7 +749,6 @@ bfd_get_arch_size (abfd)
|
||||
if (abfd->xvec->flavour == bfd_target_elf_flavour)
|
||||
return (get_elf_backend_data (abfd))->s->arch_size;
|
||||
|
||||
bfd_set_error (bfd_error_wrong_format);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||
|
||||
* objdump.c (dump_headers): Fix output formatting for ELF32
|
||||
architectures in a BFD64 enabled toolchain.
|
||||
|
||||
2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* debug.c: Fix formatting.
|
||||
|
@ -361,6 +361,10 @@ dump_headers (abfd)
|
||||
#ifndef BFD64
|
||||
printf (_("Idx Name Size VMA LMA File off Algn"));
|
||||
#else
|
||||
/* 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user