summaryrefslogtreecommitdiffstats
path: root/lld/test/elf
Commit message (Collapse)AuthorAgeFilesLines
* Move the contents of test/elf to test/ELFHans Wennborg2016-09-091-52/+0
| | | | | | | | Having two directories with the same name modulo case does not work well on Windows. The new test/elf directory was added in r281108. I assume the intention was to add the test file to the existing test/ELF dir. llvm-svn: 281115
* [ELF] Add support for -b binaryMichael J. Spencer2016-09-091-0/+52
| | | | | | | | | | Implemented by building an ELF file in memory. elf, default, and binary match gold behavior. Differential Revision: https://reviews.llvm.org/D24060 llvm-svn: 281108
* Rename test/elf to test/old-elf.Rafael Espindola2015-11-17640-37769/+0
| | | | llvm-svn: 253312
* Rename the gnu flavour to gnu old.Rafael Espindola2015-11-16455-676/+676
| | | | | | This is the first step in making ELF2 the default. llvm-svn: 253188
* [Driver] Accept both -m <emulation> and -m<emulation>Simon Atanasyan2015-10-281-0/+2
| | | | | | | | | GNU linkers accept both variants and at least for MIPS target gcc passes joined variant of the '-m' option. Differential Revision: http://reviews.llvm.org/D14133 llvm-svn: 251497
* Correct relocation type in test header commentEd Maste2015-10-251-1/+1
| | | | llvm-svn: 251242
* ELF/AMDGPU: Text section should be called .hsatextTom Stellard2015-09-251-3/+3
| | | | | | | | | | Reviewers: atanasyan, ruiu Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12447 llvm-svn: 248621
* [Mips] Rejects all --hash-style arguments except 'sysv' in case of MIPS targetSimon Atanasyan2015-09-161-0/+15
| | | | | | MIPS ABI supports only --hash-style=sysv variant. llvm-svn: 247796
* [Mips] Do not show an error if R_MIPS_GPREL32 relocation has a non-local targetSimon Atanasyan2015-09-161-41/+0
| | | | | | This matches GNU linker behaviour. llvm-svn: 247795
* [Mips] Support grouping of multiple consecutive relocations in case of N32 ↵Simon Atanasyan2015-08-281-0/+68
| | | | | | and 64-bit MIPS ABIs llvm-svn: 246337
* [Mips] Initial support of the MIPS N32 ABISimon Atanasyan2015-08-283-0/+136
| | | | llvm-svn: 246334
* Add a -target to this test.Rafael Espindola2015-08-281-1/+1
| | | | | | Without it it fails on 32 bit windows. llvm-svn: 246297
* ELF: Add AMDGPU ReaderWriterTom Stellard2015-08-271-0/+53
| | | | | | | | | This is a basic implementation that allows lld to emit binaries consumable by the HSA runtime. Differential Revision: http://reviews.llvm.org/D11267 llvm-svn: 246155
* [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
* [Mips] Use 'or' for move instead of [d]addu in PLT entriesSimon Atanasyan2015-08-1911-16/+16
| | | | | | | | Patch by Simon Dardis. Differential Revision: http://reviews.llvm.org/D12103 llvm-svn: 245491
* [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
* Add a test for our handling of shndx.Rafael Espindola2015-08-102-0/+18
| | | | | | It was already working, but missing a test. llvm-svn: 244477
* ELF: Correctly identify SHT_NOTE sections with !SHF_ALLOC as type*NoteTom Stellard2015-08-071-2/+4
| | | | | | | | Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11266 llvm-svn: 244317
* [Mips] Implement definition of the DT_MIPS_RLD_MAP_REL dynamic tagSimon Atanasyan2015-08-015-7/+11
| | | | llvm-svn: 243835
* [Mips] Implement definition of DT_MIPS_RLD_MAP dynamic tag, .rld_map ↵Simon Atanasyan2015-07-3035-783/+479
| | | | | | section, and __RLD_MAP symbol llvm-svn: 243626
* [Mips] Define _DYNAMIC_LINKING symbol if output is a is dynamically linked ↵Simon Atanasyan2015-07-251-0/+22
| | | | | | executable file llvm-svn: 243211
* [Mips] Do not sign-extend addends read from RELA relocation recordsSimon Atanasyan2015-07-251-0/+54
| | | | llvm-svn: 243208
* [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
* [Mips] Fix addend writing for R_MIPS_REL32 relocationSimon Atanasyan2015-07-211-0/+81
| | | | llvm-svn: 242760
* [Mips] Handle R_MIPS_JALR relocation to omptimize jalr/jr instructionsSimon Atanasyan2015-07-213-0/+216
| | | | llvm-svn: 242759
* [ELF/AArch64] Fix export TLS dynamic symbolAdhemerval Zanella2015-07-141-3/+3
| | | | | | | | This patch fixes the TLS dynamic variable exportation from .got.plt segments, created by General-dynamic relocations (TLSDESC). Current code only export symbols in dynamic table from .got sections. llvm-svn: 242142
* [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
* [Mips] Support MIPS big-endian 32/64-bits targetsSimon Atanasyan2015-07-138-0/+732
| | | | llvm-svn: 242014
* Update for llvm change.Rafael Espindola2015-07-061-1/+1
| | | | llvm-svn: 241489
* [ELF] Fix ELF test cases. Do not provide content for bss sections.Simon Atanasyan2015-07-0386-133/+13
| | | | llvm-svn: 241378
* [ELF] Define __start_XXX/__stop_XXX symbols where XXX is a section nameSimon Atanasyan2015-07-031-0/+108
| | | | | | | | | | | | | | This is GNU ELF linker extension used particularly by LibC code. If input object files contain section named XXX, and the XXX is a valid C identifier, and there are undefined or weak symbols __start_XXX/__stop_XXX, linker should define __start_XXX/__stop_XXX symbols point to the begin/end of the XXX section correspondingly. For example, without support of this extension statically linked executables for X86_64 and Mips (maybe other) targets do not flush IO buffers at the end of executing. llvm-svn: 241341
* [ELF/AArch64] Initial General-dynamic TLS supportAdhemerval Zanella2015-07-012-0/+169
| | | | | | | | | | | | | | This patch adds initial general-dynamic TLS support for AArch64. Currently no optimization is done to realx for more performance-wise models (initial-exec or local-exec). This patch also only currently handles correctly executable generation, although priliminary DSO support through PLT specific creation is also added. With this change clang/llvm bootstrap with lld is possible in static configuration (some DSO creation fails due missing Linker script support, not AArch64 specific), although make check also shows some issues. llvm-svn: 241192
* [Mips] Reject R_MIPS_CALL16 against local symbolsSimon Atanasyan2015-06-261-0/+56
| | | | llvm-svn: 240765
* [Mips] Create LA25 stubs for all branch relocationsSimon Atanasyan2015-06-264-0/+572
| | | | llvm-svn: 240763
* Update for llvm change.Rafael Espindola2015-06-252-2/+2
| | | | llvm-svn: 240658
* [ELF] Fix .init_array initializationAdhemerval Zanella2015-06-241-7/+12
| | | | | | | | | | | | | | | Some compilers may not add the section symbol in '.symtab' for the .init_array and 'ldd' just ignore it. It results in global constructor not being called in final executable. This patch add both '.init_array' and '.fini_array' to be added in Atom graph generation even when the section contains no symbol. An already existing testcase is modified to check for such scenario. The issue fixes the llvm test-suite regressions for both Single and MultiSource files. llvm-svn: 240570
* [Mips] Support R_MICROMIPS_HI0_LO16 relocation handlingSimon Atanasyan2015-06-221-0/+58
| | | | llvm-svn: 240268
* [Mips] Support R_MICROMIPS_LITERAL relocation handlingSimon Atanasyan2015-06-221-0/+59
| | | | llvm-svn: 240267
* [Mips] Support R_MIPS_LITERAL relocation handlingSimon Atanasyan2015-06-221-0/+57
| | | | llvm-svn: 240266
* [Mips] Support R_MICROMIPS_SUB relocation handlingSimon Atanasyan2015-06-221-0/+62
| | | | llvm-svn: 240265
* [Mips] Reject R_MIPS_GPREL32 against external symbolsSimon Atanasyan2015-06-221-0/+41
| | | | llvm-svn: 240264
* [Mips] Fix test case - do not use R_MIPS_GPREL32 against external symbolsSimon Atanasyan2015-06-221-3/+3
| | | | | | No functional changes. llvm-svn: 240263
* [Mips] Reject position-dependent relocations in case of shared library linkingSimon Atanasyan2015-06-221-0/+82
| | | | llvm-svn: 240262
* [Mips] Fix test case - do not use R_MIPS_HI16 for shared library linkingSimon Atanasyan2015-06-221-3/+4
| | | | | | No functional changes. llvm-svn: 240261
* [Mips] Support R_MICROMIPS_HIGHER / R_MICROMIPS_HIGHEST relocations handlingSimon Atanasyan2015-06-221-0/+55
| | | | llvm-svn: 240260
* [Mips] Support R_MIPS_HIGHER / R_MIPS_HIGHEST relocations handlingSimon Atanasyan2015-06-221-0/+55
| | | | llvm-svn: 240259
* [Mips] Use new llvm-readobj -mips-reginfo flag to check .reginfo contentSimon Atanasyan2015-06-174-53/+72
| | | | | | No functional changes. llvm-svn: 239962
* [Mips] Support R_MICROMIPS_GPREL16 / R_MICROMIPS_GPREL7_S2 relocations handlingSimon Atanasyan2015-06-174-0/+248
| | | | llvm-svn: 239960
OpenPOWER on IntegriCloud