2007-08-01 Michael Snyder <msnyder@access-company.com>

* elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
	pointer must be non-null.
This commit is contained in:
Michael Snyder 2007-08-01 19:55:10 +00:00
parent 168b82983a
commit dcf6c77984
2 changed files with 6 additions and 1 deletions

View 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.

View File

@ -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;