commit | b4f0e6bafe72d73220be3157ba56e184790c1088 | [log] [tgz] |
---|---|---|
author | George Rimar <grimar@accesssoftek.com> | Mon Nov 26 12:29:56 2018 +0000 |
committer | George Rimar <grimar@accesssoftek.com> | Mon Nov 26 12:29:56 2018 +0000 |
tree | 3a325320f3bdb7c56d401f754cb8e8b8a44d714b | |
parent | a7209c3c89aeae9865f52402b41b9782ede9cd72 [diff] |
[LLD][ELF] - Do not crash when parsing the -defsym option from a error state. When we are in a error state, script parser will not parse the -defsym expression and hence will not tokenize it. Then ScriptLexer::Pos will be 0 and LLD will assert and crash here: MemoryBufferRef ScriptLexer::getCurrentMB() { assert(!MBs.empty() && Pos > 0); // Bang ! Solution - stop parsing the defsym in a error state. That is consistent with the regular case (when we parse the linker script). git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@347549 91177308-0d34-0410-b5e6-96231b3b80d8
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f.