diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-03-28 16:26:38 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-03-28 16:26:38 +0000 |
| commit | a9a5129ec13911abd3a38fb3d2c6118fe0041a6b (patch) | |
| tree | 783fec7da9d73164ae7b8c71576ecbc45f582138 /lld/lib/Driver/GnuLdDriver.cpp | |
| parent | d7610a5d6721fe412d5af8018fe13fb8f3c3aed6 (diff) | |
| download | bcm5719-llvm-a9a5129ec13911abd3a38fb3d2c6118fe0041a6b.tar.gz bcm5719-llvm-a9a5129ec13911abd3a38fb3d2c6118fe0041a6b.zip | |
[ELF] Add --allow-multiple-definition option.
If --allow-multiple-definition option is given, LLD does not treat duplicate
symbol error as a fatal error. GNU LD supports this option.
Differential Revision: http://llvm-reviews.chandlerc.com/D3211
llvm-svn: 205015
Diffstat (limited to 'lld/lib/Driver/GnuLdDriver.cpp')
| -rw-r--r-- | lld/lib/Driver/GnuLdDriver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/lib/Driver/GnuLdDriver.cpp b/lld/lib/Driver/GnuLdDriver.cpp index e6eacbf0f0a..1631c82304e 100644 --- a/lld/lib/Driver/GnuLdDriver.cpp +++ b/lld/lib/Driver/GnuLdDriver.cpp @@ -323,6 +323,10 @@ bool GnuLdDriver::parse(int argc, const char *argv[], ctx->setUseShlibUndefines(true); break; + case OPT_allow_multiple_definition: + ctx->setAllowDuplicates(true); + break; + case OPT_dynamic_linker: ctx->setInterpreter(inputArg->getValue()); break; |

