summaryrefslogtreecommitdiffstats
path: root/lld/test/LinkerScript
Commit message (Collapse)AuthorAgeFilesLines
* Delete the old script parser.Rafael Espindola2016-02-2823-1203/+0
| | | | | | It was ELF specific. llvm-svn: 262163
* Add PHDR and FILL parsing.Michael J. Spencer2015-05-282-0/+35
| | | | llvm-svn: 238383
* LinkerScript: Add parsing of the EXTERN commandMeador Inge2015-03-123-0/+70
| | | | | | | | | This patch implements parsing of the GNU ld EXTERN command [1]. Evaluation will be added at a later point in time. [1] https://sourceware.org/binutils/docs/ld/Miscellaneous-Commands.html#Miscellaneous-Commands llvm-svn: 232110
* LinkerScript: Add parsing of the MEMORY commandMeador Inge2015-03-116-0/+195
| | | | | | | | | | | This patch implements parsing of the GNU ld MEMORY command [1]. The command and the memory block definitions are parsed as specified (including the slightly strange "o" and "l" keywords). Evaluation will be added at a later point in time. [1] https://sourceware.org/binutils/docs-2.25/ld/MEMORY.html llvm-svn: 231928
* [Core,MachO,Test] Remove trailing whitespace.Shankar Easwaran2015-02-221-16/+16
| | | | llvm-svn: 230192
* [ELF] Support for parsing OUTPUT command in LinkerScriptDavide Italiano2015-02-021-0/+5
| | | | | | | Differential Revision: D7326 Reviewed by: rafaelauler, shankarke, ruiu llvm-svn: 227786
* Remove the slashes so they don't fail in some Windows setupsFilipe Cabecinhas2015-01-152-2/+2
| | | | llvm-svn: 226222
* [lld] Teach LLD how to parse most linker scriptsRafael Auler2014-11-0311-2/+825
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does *not* implement any semantic actions, but it is a first step to teach LLD how to read complete linker scripts. The additional linker scripts statements whose parsing is now supported are: * SEARCH_DIR directive * SECTIONS directive * Symbol definitions inside SECTIONS including PROVIDE and PROVIDE_HIDDEN * C-like expressions used in many places in linker scripts * Input to output sections mapping The goal of this commit was guided towards completely parsing a default GNU ld linker script and the linker script used to link the FreeBSD kernel. Thus, it also adds a test case based on the default linker script used in GNU ld for x86_64 ELF targets. I tested SPEC userland programs linked by GNU ld, using the linker script dump'ed by this parser, and everything went fine. I then tested linking the FreeBSD kernel with a dump'ed linker script, installed the new kernel and booted it, everything went fine. Directives that still need to be implemented: * MEMORY * PHDRS Reviewers: silvas, shankarke and ruiu http://reviews.llvm.org/D5852 llvm-svn: 221126
* [ELF] Implement parsing `-l` prefixed items in the `GROUP` linker script ↵Simon Atanasyan2014-07-153-2/+26
| | | | | | | | | | | | | | | | | | command. There are two forms of `-l` prefixed expression: * -l<libname> * -l:<filename> In the first case a linker should construct a full library name `lib + libname + .[so|a]` and search this library as usual. In the second case a linker should use the `<filename>` as is and search this file through library search directories. The patch reviewed by Shankar Easwaran. llvm-svn: 213077
* [LinkerScript] parse OUTPUT_FORMAT : treat quotedStrings as identifierShankar Easwaran2014-02-251-3/+3
| | | | llvm-svn: 202166
* [LinkerScript] OUTPUT_FORMAT: Parse Quoted StringsShankar Easwaran2014-02-252-0/+51
llvm-svn: 202111
OpenPOWER on IntegriCloud