summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/at.s
Commit message (Collapse)AuthorAgeFilesLines
* [test] Change llvm-readobj -long-option to --long-option or well-known short ↵Fangrui Song2019-05-011-1/+1
| | | | | | | | | | | | options. NFC Also change some options that have different semantics (cause confusion) in llvm-readelf mode: -s => -S -t => --symbols -sd => --section-data llvm-svn: 359651
* [ELF] Don't output headers into a segment if there's no space for themPetr Hosek2017-08-231-25/+0
| | | | | | | | | | | | | | | | | | | | | | Currently, LLD checks whether there's enough space for headers by checking if headers fit below the address of the first allocated section. However, that's always thue if the binary doesn't start at zero which means that LLD always emits a segment for headers, even if no other sections belong to that segment. This is a problem in cases when linker script is being used with a non-zero start address when we don't want to make the headers visible by not leaving enough space for them. This pattern is common in embedded programming but doesn't work in LLD. This patch changes the behavior of LLD in case when linker script is being to match the behavior of BFD ld and gold, which is to only place headers into a segment when they're covered by some output section. Differential Revision: https://reviews.llvm.org/D36256 llvm-svn: 311586
* Make a few tests shorter. NFC.Rui Ueyama2017-04-121-20/+5
| | | | llvm-svn: 300120
* [ELF] Fix LMA offset calculationEugene Leviant2017-03-141-0/+20
| | | | | | Differential revision: https://reviews.llvm.org/D30832 llvm-svn: 297713
* Disable --rosegment when we have linker scripts.Rafael Espindola2016-09-201-14/+5
| | | | | | | | Linker scripts are responsible for aliging '.'. Since they are designed for bfd which has no --rosegment, they don't align the RO to RX transition. llvm-svn: 281978
* Remove useless file prefix.Rui Ueyama2016-09-021-0/+128
Differential Revision: https://reviews.llvm.org/D24207 llvm-svn: 280540
OpenPOWER on IntegriCloud