* objdump.c (find_symbol_for_address): Avoid costly call to
authorCary Coutant <ccoutant@google.com>
Mon, 24 Aug 2009 18:43:50 +0000 (18:43 +0000)
committerCary Coutant <ccoutant@google.com>
Mon, 24 Aug 2009 18:43:50 +0000 (18:43 +0000)
bfd_octets_per_byte.

binutils/ChangeLog
binutils/objdump.c

index 718381812cc1192ca33592db1ed0602a3feb0973..b939b6f37efc98ff4ff34fc6c1b56d16583c8b7d 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-24  Cary Coutant  <ccoutant@google.com>
+
+       * objdump.c (find_symbol_for_address): Avoid costly call to
+       bfd_octets_per_byte.
+
 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * Makefile.am (am__skiplex, am__skipyacc): New.
index 758b0be4a68764d18d804413c527f94da05c9e74..71909980b5e67377eb8627950009a764ab08ba4a 100644 (file)
@@ -747,7 +747,7 @@ find_symbol_for_address (bfd_vma vma,
   aux = (struct objdump_disasm_info *) info->application_data;
   abfd = aux->abfd;
   sec = aux->sec;
-  opb = bfd_octets_per_byte (abfd);
+  opb = info->octets_per_byte;
 
   /* Perform a binary search looking for the closest symbol to the
      required value.  We are searching the range (min, max].  */