aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2010-09-02 21:34:22 +0000
committerRichard Henderson <rth@redhat.com>2010-09-02 21:34:22 +0000
commit09fc85f6cf38328f30243107776dde8e3fece450 (patch)
tree56f639d921d31012b417e7210cd48192cc32e183 /binutils/objdump.c
parentba7208835a4fd7f9a1a88845cc094098dfa86846 (diff)
downloadgdb-09fc85f6cf38328f30243107776dde8e3fece450.zip
gdb-09fc85f6cf38328f30243107776dde8e3fece450.tar.gz
gdb-09fc85f6cf38328f30243107776dde8e3fece450.tar.bz2
* objdump.c (dump_dwarf): Use bfd_arch_bits_per_address.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index f94dee9..ca7741d 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2340,9 +2340,7 @@ dump_dwarf (bfd *abfd)
{
is_relocatable = (abfd->flags & (EXEC_P | DYNAMIC)) == 0;
- /* FIXME: bfd_get_arch_size may return -1. We assume that 64bit
- targets will return 64. */
- eh_addr_size = bfd_get_arch_size (abfd) == 64 ? 8 : 4;
+ eh_addr_size = bfd_arch_bits_per_address (abfd) / 8;
if (bfd_big_endian (abfd))
byte_get = byte_get_big_endian;