aboutsummaryrefslogtreecommitdiff
path: root/gold/target-reloc.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-10-10 18:54:06 +0000
committerIan Lance Taylor <iant@google.com>2006-10-10 18:54:06 +0000
commita783673bd6247d3fcbf2cfe54fe7574d36b97691 (patch)
tree382ad6bd357c8bd20581d864b0f2c4ada8d303b7 /gold/target-reloc.h
parent774a49c04797335bacdeb48d2438dc2863c8a9fe (diff)
downloadgdb-a783673bd6247d3fcbf2cfe54fe7574d36b97691.zip
gdb-a783673bd6247d3fcbf2cfe54fe7574d36b97691.tar.gz
gdb-a783673bd6247d3fcbf2cfe54fe7574d36b97691.tar.bz2
Avoid multiple definition errors from linkonce sections.
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r--gold/target-reloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/target-reloc.h b/gold/target-reloc.h
index 66ff78c..f972b11 100644
--- a/gold/target-reloc.h
+++ b/gold/target-reloc.h
@@ -94,6 +94,7 @@ relocate_section(
else
{
Symbol* gsym = global_syms[r_sym - local_count];
+ assert(gsym != NULL);
if (gsym->is_forwarder())
gsym = symtab->resolve_forwards(gsym);