From a7dac15368485853f4bd463352afb9b49517b624 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Thu, 29 Sep 2011 17:04:36 +0000 Subject: * gold/incremental.cc (Sized_incremental_binary::do_process_got_plt): Check for NULL. * gold/symtab.cc (Symbol_table::add_from_relobj): Ignore version symbols during incremental update. (Symbol_table::add_from_dynobj): Likewise. --- gold/incremental.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/incremental.cc') diff --git a/gold/incremental.cc b/gold/incremental.cc index b422827..cbf6fba 100644 --- a/gold/incremental.cc +++ b/gold/incremental.cc @@ -685,7 +685,7 @@ Sized_incremental_binary::do_process_got_plt( gold_assert(plt_desc >= first_global && plt_desc < symtab_count); Symbol* sym = this->global_symbol(plt_desc - first_global); // Add the PLT entry only if the symbol is still referenced. - if (sym->in_reg()) + if (sym != NULL && sym->in_reg()) { gold_debug(DEBUG_INCREMENTAL, "PLT entry %d: %s", -- cgit v1.1