aboutsummaryrefslogtreecommitdiff
path: root/gold/resolve.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-10-06 20:40:16 +0000
committerIan Lance Taylor <iant@google.com>2006-10-06 20:40:16 +0000
commit12e14209f0834b6d3d9884a586b558c32eb2607c (patch)
tree04db4beba9abf0d2bb6f91c383a4ac4d76cf7541 /gold/resolve.cc
parent33423b7ffed87b140d924bc06ff35d353bfc4871 (diff)
downloadfsf-binutils-gdb-12e14209f0834b6d3d9884a586b558c32eb2607c.zip
fsf-binutils-gdb-12e14209f0834b6d3d9884a586b558c32eb2607c.tar.gz
fsf-binutils-gdb-12e14209f0834b6d3d9884a586b558c32eb2607c.tar.bz2
Lay out object file sections when we add the symbols to the symbol
table.
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r--gold/resolve.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gold/resolve.cc b/gold/resolve.cc
index 98e93f0..6b8199c 100644
--- a/gold/resolve.cc
+++ b/gold/resolve.cc
@@ -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: