summaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2007-08-01 19:55:10 +0000
committerMichael Snyder <msnyder@specifix.com>2007-08-01 19:55:10 +0000
commit5c5b3d3a33e7708719579b63f74880e57afb08cd (patch)
treef3312a498cc8dc859c5ccbb66b76aa69cbc96ae7 /bfd/elf.c
parenta6215fc6fd89fb2324c71f5565849b2eaf084d19 (diff)
downloadgdb-5c5b3d3a33e7708719579b63f74880e57afb08cd.tar.gz
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/elf.c')
-rw-r--r--bfd/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 0334cb88817..39678f6be1f 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;