allow-multiple-definitions should completely suppress errors instead of making them...
authorRui Ueyama <ruiu@google.com>
Mon, 19 Mar 2018 23:04:04 +0000 (23:04 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 19 Mar 2018 23:04:04 +0000 (23:04 +0000)
commit048a669b92604266a5be28eda58608882fb46dd6
treedc6fe701d9b961b776aa29a9dfd90b46f35b7408
parent6738960588d4c2cf5dea5d9d5fed52935e732446
allow-multiple-definitions should completely suppress errors instead of making them warnings.

We found that when you pass --allow-multiple-definitions or `-z muldefs`
to GNU linkers, they don't complain about duplicate symbols at all. They
don't even print out warnings on it. We emit warnings in that case.
If you pass --fatal-warnings, that difference results in a link failure.

Differential Revision: https://reviews.llvm.org/D44549

llvm-svn: 327920
lld/ELF/SymbolTable.cpp
lld/test/ELF/allow-multiple-definition.s