From: Alan Modra Date: Mon, 3 Jun 2002 13:02:04 +0000 (+0000) Subject: * objdump.c: Fix formatting. X-Git-Tag: binutils-2_13-branchpoint~580 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28b18af1b9a0b474144e7224b359a60abe765b77;p=platform%2Fupstream%2Fbinutils.git * objdump.c: Fix formatting. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9197c45..7f8ab70 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2002-06-3 Elias Athanasopoulos + + * objdump.c: Fix formatting. + 2002-05-29 Ben Elliston * MAINTAINERS: Add self as M68k maintainer. diff --git a/binutils/objdump.c b/binutils/objdump.c index dce1308..59a1731 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -1,6 +1,6 @@ /* objdump.c -- dump information about an object file. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001 + 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -390,11 +390,9 @@ slurp_symtab (abfd) storage = bfd_get_symtab_upper_bound (abfd); if (storage < 0) bfd_fatal (bfd_get_filename (abfd)); - if (storage) - { - sy = (asymbol **) xmalloc (storage); - } + sy = (asymbol **) xmalloc (storage); + symcount = bfd_canonicalize_symtab (abfd, sy); if (symcount < 0) bfd_fatal (bfd_get_filename (abfd)); @@ -424,11 +422,9 @@ slurp_dynamic_symtab (abfd) bfd_fatal (bfd_get_filename (abfd)); } - if (storage) - { - sy = (asymbol **) xmalloc (storage); - } + sy = (asymbol **) xmalloc (storage); + dynsymcount = bfd_canonicalize_dynamic_symtab (abfd, sy); if (dynsymcount < 0) bfd_fatal (bfd_get_filename (abfd));