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 | |
parent | bfba206a7e0240ba5a3a8f8e2eaff859e323c87a (diff) | |
download | gdb-28b18af1b9a0b474144e7224b359a60abe765b77.zip gdb-28b18af1b9a0b474144e7224b359a60abe765b77.tar.gz gdb-28b18af1b9a0b474144e7224b359a60abe765b77.tar.bz2 |
* objdump.c: Fix formatting.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/objdump.c | 14 |
2 files changed, 9 insertions, 9 deletions
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 <eathan@otenet.gr> + + * objdump.c: Fix formatting. + 2002-05-29 Ben Elliston <bje@redhat.com> * 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)); |