summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatherine Moore <clm@redhat.com>2000-03-06 15:44:25 +0000
committerCatherine Moore <clm@redhat.com>2000-03-06 15:44:25 +0000
commit97630a15d25e44da1264d6ef9e25da5c1e757f83 (patch)
tree4adc80efac64def5335e021aac033f83c8a775c2
parent43880048c8c3361744c73c73b477551d6687d15c (diff)
downloadgdb-97630a15d25e44da1264d6ef9e25da5c1e757f83.tar.gz
* elf.c (swap_out_syms): Check for null type_ptr.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9bdb4c3506a..0afc0903b72 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2000-03-06 Catherine Moore <clm@cygnus.com>
+
+ * elf.c (swap_out_syms): Check for null type_ptr.
+
2000-03-01 Hans-Peter Nilsson <hp@axis.com>
* aout-target.h (MY(write_object_contents)): Remove unused
diff --git a/bfd/elf.c b/bfd/elf.c
index e4bcd219caa..97906171696 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4224,7 +4224,8 @@ swap_out_syms (abfd, sttp, relocatable_p)
type = STT_NOTYPE;
/* Processor-specific types */
- if (bed->elf_backend_get_symbol_type)
+ if (type_ptr != NULL
+ && bed->elf_backend_get_symbol_type)
type = (*bed->elf_backend_get_symbol_type) (&type_ptr->internal_elf_sym, type);
if (flags & BSF_SECTION_SYM)