summaryrefslogtreecommitdiffstats
path: root/lld/test/elf/linkerscript
Commit message (Collapse)AuthorAgeFilesLines
* Rename test/elf to test/old-elf.Rafael Espindola2015-11-1741-1414/+0
| | | | llvm-svn: 253312
* Rename the gnu flavour to gnu old.Rafael Espindola2015-11-1627-36/+36
| | | | | | This is the first step in making ELF2 the default. llvm-svn: 253188
* [LinkerScript] Enforce uniqueness of output object files...Davide Italiano2015-08-271-5/+5
| | | | | | | ... in order to avoid conflicts when tests are run in parallel. This is an attempt to fix PR24591. llvm-svn: 246153
* [LinkerScript] Fix a crash when matching wildcards.Davide Italiano2015-08-221-0/+49
| | | | | | Submitted by: zan jyu via llvm-dev llvm-svn: 245792
* [LinkerScript] Process program header in PHDRS commandDenis Protivensky2015-08-129-3/+233
| | | | | | | | | | Add PT_PHDR segment depending on its availability in linker script's PHDRS command, fallback if no linker script is given. Handle FILEHDR, PHDRS and FLAGS attributes of program header. Differential Revision: http://reviews.llvm.org/D11589 llvm-svn: 244743
* [LinkerScript] Fix case when setting custom NONE segmentDenis Protivensky2015-07-231-0/+36
| | | | llvm-svn: 243006
* [ELF] Apply segments from linker scriptsDenis Protivensky2015-07-236-0/+224
| | | | | | | | | | | | | | Put sections to segments according to linker scripts if available. Rework the code of TargetLayout::assignSectionsToSegments so it operates on the given list of segments, which can be either read from linker scripts or constructed as before. Handle NONE segments defined in linker scripts by putting corresponding sections to PT_NULL segment. Consider flags set for segments through linker scripts. Differential Revision: http://reviews.llvm.org/D10918 llvm-svn: 243002
* [LinkerScript] Don't create unnecessarily large segmentsRafael Auler2015-07-141-0/+16
| | | | | | | | | | | | | When using a linker script expression to change the address of a section, even if the new address is more than a page of distance from the old address, lld may put everything in the same segment, forcing it to be unnecessarily large. This patch changes the logic in Segment::assignVirtualAddress() and Segment::assignFileOffsets() to allow the segment to be sliced into two or more if it detects a linker script expression that changes a section address. Differential Revision: http://reviews.llvm.org/D10952 llvm-svn: 242096
* [ELF] Fix ELF test cases. Do not provide content for bss sections.Simon Atanasyan2015-07-034-4/+0
| | | | llvm-svn: 241378
* [LinkerScript] Add matching of output sections to segmentsDenis Protivensky2015-06-158-0/+204
| | | | | | | | | | | Add method to query segments for specified output section name. Return error if the section is assigned to unknown segment. Check matching of sections to segments during layout on the subject of correctness. NOTE: no actual functionality of using custom segments is implemented. Differential Revision: http://reviews.llvm.org/D10359 llvm-svn: 239719
* Remove trailing whitespace characters.Rui Ueyama2015-04-274-26/+26
| | | | llvm-svn: 235897
* [LinkerScript] Handle symbols defined in linker scripts in case of shared libSimon Atanasyan2015-04-062-0/+64
| | | | | | | This patch is a follow-up to the rL232409 and allows define symbols in a linker script in case of linking shared library. llvm-svn: 234163
* YAML: Do not use 2^x notation to represent alignments.Rui Ueyama2015-03-252-2/+2
| | | | llvm-svn: 233222
* [LinkerScript] Handle symbols defined in linker scriptsRafael Auler2015-03-162-0/+106
| | | | | | | | | | Puts symbols defined in linker script expressions in a runtime file that is added as input to the resolver, making the input object files see symbols defined in linker scripts. http://reviews.llvm.org/D8263 llvm-svn: 232409
* [LinkerScript] Adding test cases for SECTIONS semanticsRafael Auler2015-03-165-0/+414
| | | | llvm-svn: 232404
* LinkerScript: Add -T <scriptfile> optionMeador Inge2015-03-134-0/+45
| | | | | | | | | | | GNU LD has an option named -T/--script which allows a user to specify a linker script to be used [1]. LLD already accepts linker scripts without this option, but the option is widely used. Therefore it is best to support it in LLD as well. [1] https://sourceware.org/binutils/docs/ld/Options.html#Options llvm-svn: 232183
* LinkerScript: Add evaluation of the EXTERN commandMeador Inge2015-03-122-0/+24
| | | | | | This patch implements evaluation of the GNU ld EXTERN command. llvm-svn: 232111
* [ELF] Return error from invalid linker script parse.Shankar Easwaran2013-10-102-0/+6
llvm-svn: 192360
OpenPOWER on IntegriCloud