diff options
author | Alan Modra <amodra@gmail.com> | 2002-06-03 13:02:04 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-06-03 13:02:04 +0000 |
commit | 28b18af1b9a0b474144e7224b359a60abe765b77 (patch) | |
tree | 72eeae6879608fb977714425de8c4203e8cc27a4 /binutils/objdump.c | |
parent | bfba206a7e0240ba5a3a8f8e2eaff859e323c87a (diff) | |
download | gdb-28b18af1b9a0b474144e7224b359a60abe765b77.zip gdb-28b18af1b9a0b474144e7224b359a60abe765b77.tar.gz gdb-28b18af1b9a0b474144e7224b359a60abe765b77.tar.bz2 |
* objdump.c: Fix formatting.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 14 |
1 files changed, 5 insertions, 9 deletions
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)); |