summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/operators.test
Commit message (Collapse)AuthorAgeFilesLines
* [ELF] - Add support for '||' and '&&' in linker scripts.George Rimar2018-07-031-0/+16
| | | | | | | This is https://bugs.llvm.org//show_bug.cgi?id=37976, we had no support, but seems someone faced it. llvm-svn: 336197
* [ELF] - Linkerscript: support MIN and MAX.George Rimar2018-03-281-0/+4
| | | | | | | | | | | | | | Sample for the OVERLAY command from the spec (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/sections.html) uses MAX command that we do not support currently: . = 0x1000 + MAX (SIZEOF (.text0), SIZEOF (.text1)); This patch implements support for MIN and MAX. Differential revision: https://reviews.llvm.org/D44734 llvm-svn: 328696
* Fix linker script operator precedence.Rui Ueyama2018-03-151-0/+4
| | | | | | | | | | | "&" should have higher priority than "|" [1]. Previously, they had the same priority. [1] https://sourceware.org/binutils/docs/ld/Operators.html Differential Revision: https://reviews.llvm.org/D43880 llvm-svn: 327684
* [ELF] - Report location for div/mod by zero.George Rimar2018-03-051-1/+7
| | | | | | | | | | | "division by zero" or "modulo by zero" are not very informative errors and even probably confusing as does not let to know that error is coming from linker script. Patch adds location reporting. Differential revision: https://reviews.llvm.org/D43934 llvm-svn: 326686
* Write some tests as linker scripts instead of assembly files.Rui Ueyama2018-02-281-0/+100
Some linker script test cases contain only a few lines of assembly and a long linker script. Such tests are easier to maintain if we write the main test file as a linkier script instead of assembly. Differential Revision: https://reviews.llvm.org/D43887 llvm-svn: 326363
OpenPOWER on IntegriCloud