From ab63d10eb6c873acb697a4c6e556845ac9c67dea Mon Sep 17 00:00:00 2001 From: msnyder Date: Wed, 1 Aug 2007 19:55:09 +0000 Subject: [PATCH] 2007-08-01 Michael Snyder * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so pointer must be non-null. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6e10aadabd..ea5ece5e8d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-08-01 Michael Snyder + + * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so + pointer must be non-null. + 2007-08-01 Tristan Gingold * coffcode.h (coff_sort_func_alent): New function. diff --git a/bfd/elf.c b/bfd/elf.c index 0334cb8881..39678f6be1 100644 --- 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; -- 2.11.0