summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/version-script-err.s
Commit message (Collapse)AuthorAgeFilesLines
* [ELF] Don't cause assertion failure if --dynamic-list or --version-script ↵Fangrui Song2020-06-161-0/+5
| | | | | | | | | takes an empty file Fixes PR46184 Report line 1 of the last memory buffer. (cherry picked from commit ac6abc99e2794e4674a8498f817fda19b176bbfe)
* [ELF] - Remove ScriptLexer::Error field and check ErrorCount instead.George Rimar2017-08-041-1/+0
| | | | | | | | | | | | D35945 introduces change when there is useless to check Error flag in few places, but ErrorCount must be checked instead. But then we probably can just check ErrorCount always. That should simplify things. Patch do that. Differential revision: https://reviews.llvm.org/D36266 llvm-svn: 310046
* [ELF] Better error reporting for linker scriptsEugene Leviant2016-11-211-1/+2
| | | | | | Differential revision: https://reviews.llvm.org/D26795 llvm-svn: 287547
* Revert "Add a space to work around a Windows CPython / MSys quoting bug"Reid Kleckner2016-10-311-1/+1
| | | | | | | | | This reverts commit r284768. After LLVM r285237, the lit shell interpreter works around this bug for us. llvm-svn: 285629
* Add a space to work around a Windows CPython / MSys quoting bugReid Kleckner2016-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Summary: The rules for quoting the command line that a subprocess receives are user space conventions implemented by the C runtime. Python's quoting rules are implemented here: https://github.com/python/cpython/blob/c30098c8c6014f3340a369a31df9c74bdbacc269/Lib/subprocess.py#L725 The result is that the final command line C string computed by Python is 'echo \"'. Mingw doesn't appear to interpret that backslash as escaping the quote because it is not already inside a quoted region. As a result, our echo command prints a single backslash instead of a quote. The whole issue can be sidestepped by adding a space a forcing Python to put the argument to echo in double quotes. Reviewers: inglorion, ruiu Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D25841 llvm-svn: 284768
* Recommit r275257 "[ELF] - Implement extern "c++" version script tag"George Rimar2016-07-161-5/+0
| | | | | | | | | | | | | | | | | | | | | BSD toolchain contains a bug: https://sourceforge.net/p/elftoolchain/tickets/491/ In short demangler works differently, fix was to update the testcase. It should fix the FreeBSD bot failture: http://lab.llvm.org:8011/builders/lld-x86_64-freebsd/builds/19432/steps/test_lld/logs/stdio Original commit message was: [ELF] - Implement extern "c++" version script tag Patch implements 'extern' version script tag. Currently only values in quotes(") are supported. Matching of externs is performed in the same pass as exact match of globals. Differential revision: http://reviews.llvm.org/D21930 llvm-svn: 275682
* Reverted r275257 "[ELF] - Implement extern "c++" version script tag"George Rimar2016-07-131-0/+5
| | | | | | | | It broke build bots: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/8204 http://lab.llvm.org:8011/builders/lld-x86_64-freebsd/builds/19432 llvm-svn: 275258
* [ELF] - Implement extern "c++" version script tagGeorge Rimar2016-07-131-5/+0
| | | | | | | | | | | Patch implements 'extern' version script tag. Currently only values in quotes(") are supported. Matching of externs is performed in the same pass as exact match of globals. Differential revision: http://reviews.llvm.org/D21930 llvm-svn: 275257
* [ELF] - Show explicit error if extern keyword is used in version script.George Rimar2016-06-221-0/+5
| | | | | | | Since we do not have plans to support it in closest future, it is better than common script parsing error. llvm-svn: 273426
* Added new line at the end of file. NFC.George Rimar2016-06-221-1/+1
| | | | llvm-svn: 273399
* [ELF] - Do not crash on unclosed quote (") in scripts.George Rimar2016-06-221-0/+5
| | | | | | | Found that during investigation of FreeBsd scripts. Unclosed quote just crashed lld. llvm-svn: 273398
* Don't go on an infinite loop on a missing ";".Rafael Espindola2016-06-201-0/+5
Thanks to Will Dietz for reporting the issue. llvm-svn: 273157
OpenPOWER on IntegriCloud