summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/undefined-opt.s
Commit message (Collapse)AuthorAgeFilesLines
* lld: unquote possibly quoted `EXTERN("symbol")` entry in linker script.Rui Ueyama2019-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | gold accepts quoted strings. binutils requires quoted strings for some kinds of symbols, e.g.: it accepts quoted symbols with @ in name: $ echo 'EXTERN("__libc_start_main@@GLIBC_2.2.5")' > a.script $ g++ a.script /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status but rejects them if unquoted: $ echo 'EXTERN(__libc_start_main@@GLIBC_2.2.5)' > a.script $ g++ a.script a.script: file not recognized: File format not recognized collect2: error: ld returned 1 exit status To maintain compatibility with existing linker scripts support quoted strings in lld as well. Patch by Lucian Adrian Grijincu. Differential Revision: https://reviews.llvm.org/D57987 llvm-svn: 353756
* [ELF] Move `# REQUIRES:` line to the topFangrui Song2018-06-261-1/+1
| | | | llvm-svn: 335625
* Define '-undefined foo' as an alias to '-undefined=foo'.Rui Ueyama2016-09-081-0/+2
| | | | llvm-svn: 280985
* Remove unnecessary trailing semicolons.Rui Ueyama2016-04-271-1/+1
| | | | | | | Since this semicolon existed in an early test file, it has spread to many files. llvm-svn: 267659
* ELF: Re-implement -u directly and remove CanKeepUndefined flag.Peter Collingbourne2016-04-271-0/+11
| | | | | | | | | | | | | | | | The semantics of the -u flag are to load the lazy symbol named by the flag. We were previously relying on this behavior falling out of symbol resolution against a synthetic undefined symbol, but that didn't quite give us the correct behavior, so we needed a flag to mark symbols created with -u so we could treat them specially in the writer. However, it's simpler and less error prone to implement the required behavior directly and remove the flag. This fixes an issue where symbols loaded with -u would receive hidden visibility even when the definition in an object file had wider visibility. Differential Revision: http://reviews.llvm.org/D19560 llvm-svn: 267639
* Rename ld.lld2 to ld.lld since it is the default.Rafael Espindola2015-11-181-5/+5
| | | | llvm-svn: 253437
* Rename test/elf2 to test/ELF.Rafael Espindola2015-11-171-0/+55
llvm-svn: 253313
OpenPOWER on IntegriCloud