summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/Inputs/segment-start.script
Commit message (Collapse)AuthorAgeFilesLines
* [ELF] - SEGMENT_START's default argument can be an expressionGeorge Rimar2016-09-171-1/+1
| | | | | | | | | | | Our implementation supported integer value previously. ld can use expression, for example, it is OK to write . = SEGMENT_START("foobar", .); Patch implements that. llvm-svn: 281831
* Add support for SEGMENT_START.Rafael Espindola2016-07-281-0/+7
This is a bit of an odd feature. It is normally used in . = SEGMENT_START(seg, val); In bfd it evaluates to val or to the value of the corresponding -T<seg>-segment. Note that the -T<seg>-segment in bfd doesn't actually change the segment address, just the value this evaluates too, including in the default linker script. In gold the -T<seg>-segment options do change the segment address and seeing this expressions in linker scripts disables the options. For new this just always evaluates the expression to val. llvm-svn: 277014
OpenPOWER on IntegriCloud