diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-01 19:55:10 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-01 19:55:10 +0000 |
commit | dcf6c77984275c7834be121f5ca42aa8e44ade6c (patch) | |
tree | d15ad50f0ec3e2f1c8e749c8193ff2ac74f437c3 /bfd | |
parent | 168b82983a94882e0c0dfbabf6ef40f521b6b7bd (diff) | |
download | gdb-dcf6c77984275c7834be121f5ca42aa8e44ade6c.zip gdb-dcf6c77984275c7834be121f5ca42aa8e44ade6c.tar.gz gdb-dcf6c77984275c7834be121f5ca42aa8e44ade6c.tar.bz2 |
2007-08-01 Michael Snyder <msnyder@access-company.com>
* elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
pointer must be non-null.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6e10aad..ea5ece5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. @@ -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; |