2007-08-01 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 1 Aug 2007 19:55:10 +0000 (19:55 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 1 Aug 2007 19:55:10 +0000 (19:55 +0000)
* elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
pointer must be non-null.

bfd/ChangeLog
bfd/elf.c

index 6e10aadabdea435fd662edc6eb0e5c4a73a5836f..ea5ece5e8dc33d926db0574185a4adec109a6e75 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-01  Michael Snyder  <msnyder@access-company.com>
+
+       * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
+       pointer must be non-null.
+
 2007-08-01  Tristan Gingold  <gingold@adacore.com>
 
        * coffcode.h (coff_sort_func_alent): New function.
index 0334cb88817d660edf2ffbfbdff6bd347dc60d16..39678f6be1f3eb71fdc5b1f0bad0b17bea1ced55 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1364,7 +1364,7 @@ bfd_elf_print_symbol (bfd *abfd,
           we've already printed the size; now print the alignment.
           For other symbols, we have no specified alignment, and
           we've printed the address; now print the size.  */
-       if (bfd_is_com_section (symbol->section))
+       if (symbol->section && bfd_is_com_section (symbol->section))
          val = ((elf_symbol_type *) symbol)->internal_elf_sym.st_value;
        else
          val = ((elf_symbol_type *) symbol)->internal_elf_sym.st_size;