Lay out object file sections when we add the symbols to the symbol

table.
This commit is contained in:
Ian Lance Taylor 2006-10-06 20:40:16 +00:00
parent 33423b7ffe
commit 12e14209f0
11 changed files with 214 additions and 184 deletions

View file

@ -184,9 +184,10 @@ Symbol_table::resolve(Sized_symbol<size>* to,
switch (tobits * 16 + frombits)
{
case DEF * 16 + DEF:
// Two definitions of the same symbol. We can't give an error
// here, because we have not yet discarded linkonce and comdat
// sections. FIXME.
// Two definitions of the same symbol.
fprintf(stderr, "%s: %s: multiple definition of %s\n",
program_name, object->name().c_str(), to->name());
// FIXME: Report locations. Record that we have seen an error.
return;
case WEAK_DEF * 16 + DEF: