aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
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
commitb47e35fc72e65c60272f3ae29c85ae6ecc6976fc (patch)
tree8227cae52b56096fc1bdfe91e3d305185766380f /bfd/elf.c
parent64bb16715dac9a39b68cc56d9e51ab986eef55e0 (diff)
downloadfsf-binutils-gdb-b47e35fc72e65c60272f3ae29c85ae6ecc6976fc.zip
fsf-binutils-gdb-b47e35fc72e65c60272f3ae29c85ae6ecc6976fc.tar.gz
fsf-binutils-gdb-b47e35fc72e65c60272f3ae29c85ae6ecc6976fc.tar.bz2
* elf.c (swap_out_syms): Check for null type_ptr.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index e4bcd21..9790617 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)