| commit | 21923996f84205d9dfbaf6095d61647b42ff2e08 | [log] [tgz] |
|---|---|---|
| author | Rui Ueyama <ruiu@google.com> | Mon Feb 01 23:28:21 2016 +0000 |
| committer | Rui Ueyama <ruiu@google.com> | Mon Feb 01 23:28:21 2016 +0000 |
| tree | b1484df4611c35d318989caeb87dbc5362bd0b84 | |
| parent | a9a630759facd50ed2f801695180bf7c498460d4 [diff] [blame] |
ELF: Do not call fatal() if relocation contraints are not satisfied. http://reviews.llvm.org/D16648 llvm-svn: 259435
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index f8f6215..c67567c 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp
@@ -163,6 +163,8 @@ openFile(Config->OutputFile); writeHeader(); writeSections(); + if (HasError) + return; fatal(Buffer->commit()); }