summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove unnecessary include.Rafael Espindola2015-10-131-1/+0
| | | | llvm-svn: 250161
* Use llvm::sys::path::is_absolute instead of my own.Rui Ueyama2015-10-131-5/+2
| | | | llvm-svn: 250133
* Fix test breakage on Windows.Rui Ueyama2015-10-121-1/+6
| | | | llvm-svn: 250127
* [ELF2/LinkerScript] Implement parsing of OUTPUT_ARCH() command.Davide Italiano2015-10-121-0/+10
| | | | | | Differential Revision: http://reviews.llvm.org/D13675 llvm-svn: 250115
* [ELF2/LinkerScript] Fix OUTPUT_FORMAT directive parsingDavide Italiano2015-10-121-0/+8
| | | | | | Differential Revision: http://reviews.llvm.org/D13668 llvm-svn: 250106
* Remove explicit Twine instantiation if possible.Rui Ueyama2015-10-121-1/+1
| | | | llvm-svn: 250055
* ELF2: Implement --as-needed.Rui Ueyama2015-10-111-1/+4
| | | | | | | | | | | | | | This patch adds AsNeeded and IsUsed bool fields to SharedFile. AsNeeded bit is set if the DSO is enclosed with --as-needed and --no-as-needed. IsUsed bit is off by default. When we adds a symbol to the symbol table for dynamic linking, we set its SharedFile's IsUsed bit. If AsNeeded is set but IsUsed is not set, we don't want to write that file's SO name to DT_NEEDED field. http://reviews.llvm.org/D13579 llvm-svn: 249998
* ELF2: LinkerScript: Interpret -l and = file name prefixes.Rui Ueyama2015-10-111-3/+23
| | | | | | | | In the linker script, -l and = have the same meaning as in the command line. In addition to that, if a path is not absolute, the path needs to be searched from the search paths. This patch implements them. llvm-svn: 249967
* ELF2: Do not leak MemoryBuffers.Rui Ueyama2015-10-111-8/+8
| | | | llvm-svn: 249962
* ELF2: LinkerScript: Handle INPUT as a synonym for GROUP.Rui Ueyama2015-10-111-1/+1
| | | | | | | In our name resolution algorithm, --start-group and --end-group have no special meaning. llvm-svn: 249961
* ELF2: LinkerScript: Implement INCLUDE directive.Rui Ueyama2015-10-111-0/+16
| | | | llvm-svn: 249960
* [ELF2] Implement linker script SEARCH_DIR() directive.Davide Italiano2015-10-081-0/+9
| | | | llvm-svn: 249707
* [ELF2] Add ENTRY command to the linker scriptDenis Protivensky2015-10-081-1/+13
| | | | | | | | Set ENTRY as an entry point if -e is not specified. Differential Revision: http://reviews.llvm.org/D13509 llvm-svn: 249661
* ELF2: Implement OUTPUT() linker script directive.Rui Ueyama2015-10-071-0/+12
| | | | llvm-svn: 249491
* ELF2: Define Driver::addFile() as a one-stop place to open a file.Rui Ueyama2015-10-011-6/+5
| | | | | | | | | | | | | | Opening a file and dispatching to readLinkerScript() or createFile() is a common operation. We want to use that at least from Driver and from LinkerScript. In COFF, we had the same problem. This patch resolves the problem in the same way as we did for COFF. Now, if you have a path that you want to open, just call Driver->addFile(StringRef). That function opens the file and handles that as if that were given by command line. This function is the only place we call identify_magic(). llvm-svn: 249023
* ELF2: Create LinkerScript.cpp and move code from DriverUtils to there.Rui Ueyama2015-09-301-0/+156
llvm-svn: 248920
OpenPOWER on IntegriCloud