From: Cary Coutant Date: Mon, 24 Aug 2009 18:43:50 +0000 (+0000) Subject: * objdump.c (find_symbol_for_address): Avoid costly call to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=765abe2bec27ba6c69d53f3aee078749fc6df3c0;p=binutils-gdb.git * objdump.c (find_symbol_for_address): Avoid costly call to bfd_octets_per_byte. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 718381812cc..b939b6f37ef 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2009-08-24 Cary Coutant + + * objdump.c (find_symbol_for_address): Avoid costly call to + bfd_octets_per_byte. + 2009-08-24 Ralf Wildenhues * Makefile.am (am__skiplex, am__skipyacc): New. diff --git a/binutils/objdump.c b/binutils/objdump.c index 758b0be4a68..71909980b5e 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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]. */