hanchenye-llvm-project/lld/test/ELF/linkerscript
Joel Jones a5752e199c [lld] Add REQUIRES: x86 where needed to tests
If building lld without x86 support, tests that require that support should
be treated as unsupported, not errors.

Tested using:
  1. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64;X86'
     make check-lld
     =>
     Expected Passes    : 1406
     Unsupported Tests  : 287

  2. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64'
     make check-lld
     =>
     Expected Passes    : 410
     Unsupported Tests  : 1283

Patch by Joel Jones

Differential Revision: https://reviews.llvm.org/D47748

llvm-svn: 334095
2018-06-06 13:56:51 +00:00
..
Inputs [ELF] - Print LMA in a -Map file. 2018-04-05 10:51:06 +00:00
absolute-expr.test Write some tests as linker scripts instead of assembly files. 2018-02-28 20:22:42 +00:00
absolute.s
absolute2.s Consider ForceAbsolute again in moveAbsRight. 2017-09-20 19:24:57 +00:00
addr-zero.test [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
addr.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
address-expr-symbols.s [ELF] - Report error if removed empty output section declaration used undefined symbols. 2018-02-23 10:15:54 +00:00
align-empty.test [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
align-r.test Make ALIGN work with -r in linker scripts 2018-05-17 20:22:39 +00:00
align-section-offset.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
align-section.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
align1.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
align2.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
align3.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
align4.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
align5.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
alignof.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
alternate-sections.s
arm-exidx-order.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
arm-exidx-phdrs.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
arm-exidx-sentinel-and-assignment.s [ELF] Fix an assignment command at the end of an .ARM.exidx section. 2017-12-20 08:56:10 +00:00
arm-lscript.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
assert.s [ELF] - Eliminate the AssertCommand. 2018-04-25 11:16:31 +00:00
at-addr.s [ELF] Don't output headers into a segment if there's no space for them 2017-08-23 18:44:34 +00:00
at-self-reference.s Fix incorrect physical address on self-referencing AT command. 2018-01-12 23:26:25 +00:00
at.s [ELF] Don't output headers into a segment if there's no space for them 2017-08-23 18:44:34 +00:00
at2.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
at3.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
at4.s [ELF] Simplify handling of AT section attribute. 2018-02-15 06:13:52 +00:00
at5.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
broken-memory-declaration.s [ELF] - Don't crash on broken MEMORY declaration. 2018-03-01 12:36:01 +00:00
bss-fill.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
comdat-gc.s
common-assign.s
common-exclude.s Currently lld creates a single section to collect all commons. There is no way 2017-09-08 16:22:43 +00:00
common-filespec.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
common.s Currently lld creates a single section to collect all commons. There is no way 2017-09-08 16:22:43 +00:00
compress-debug-sections-custom.s [ELF] Compress debug sections after assignAddresses and support custom layout 2018-01-08 10:17:03 +00:00
compress-debug-sections.s Update testcases for llvm-dwarfdump command line interface change 2017-09-11 23:34:12 +00:00
constructor.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
copy-rel-symbol-value-err.s Handle copy relocations in symbol assignments. 2017-11-30 17:51:10 +00:00
copy-rel-symbol-value.s Handle copy relocations in symbol assignments. 2017-11-30 17:51:10 +00:00
data-commands-gc.s Check the produced file instead of stderr. 2017-06-28 01:46:31 +00:00
data-commands1.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
data-commands2.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
data-segment-relro.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
define.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
defsym.s [ELF] - Stop mixing order of -defsym/-script commands. 2018-01-17 10:24:49 +00:00
diag1.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
diag2.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
diag3.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
diag4.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
diag5.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
diag6.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
discard-gnu-hash.s [ELF] - Allow discarding .hash and .gnu.hash from linker script. 2018-03-07 11:47:15 +00:00
discard-interp.test [lld] Add REQUIRES: x86 where needed to tests 2018-06-06 13:56:51 +00:00
discard-print-gc.s Use toString to print out garbage-collected sections. 2018-02-17 00:09:49 +00:00
discard-section-err.s [ELF] - Do not ignore discarding of .rela.plt/.rela.dyn, allow doing custom layout for them. 2018-03-24 13:10:19 +00:00
discard-section-metadata.s
discard-section.s
dot-is-not-abs.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
double-bss.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
dynamic-sym.s
dynamic.s
early-assign-symbol.s Consider only A.Sec in moveAbsRight. 2017-09-20 18:56:08 +00:00
edata-etext.s
eh-frame-emit-relocs.s [ELF] - Another fix for "LLD crashes with --emit-relocs when trying to proccess .eh_frame" 2018-03-23 09:18:31 +00:00
eh-frame-hdr.s Add a CIE with length 0 unconditionally. 2018-05-08 01:19:16 +00:00
eh-frame-reloc-out-of-range.test [ELF] - Fix eh-frame-reloc-out-of-range.test. 2018-03-01 10:38:51 +00:00
eh-frame.s Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
ehdr_start.s [ELF] Define __ehdr_start unconditionally even when using linker script 2017-05-10 16:20:33 +00:00
emit-reloc-section-names.s Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
emit-reloc.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
emit-relocs-discard.s
emit-relocs-ehframe-discard.s
emit-relocs-multiple.s [ELF] - Produce relocation section name consistent with output section name when --emit-reloc used with linker script. 2017-12-01 09:04:52 +00:00
empty-link-order.test [ELF] - Fix wrong "REQUIRES" in test. 2018-03-13 08:50:36 +00:00
empty-load.s Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
empty-section-size.test [ELF] - Stop setting OutSecOff too early. 2018-04-09 13:01:50 +00:00
empty-sections-expressions.s [ELF] - Do not remove empty sections that use symbols in expressions. 2018-03-01 12:27:04 +00:00
empty-synthetic-removed-flags.s Keep flags from phantom synthetic sections. 2018-02-26 22:32:15 +00:00
empty-tls.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
entry.s
exclude-multiple.s
excludefile.s [ELF] Recommit r299635 to pad x86 executable sections with 0xcc 2017-04-07 10:36:42 +00:00
exidx-crash.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
expr-invalid-sec.test [ELF} - Fix build bots. 2018-03-13 16:23:48 +00:00
expr-sections.test [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
extend-pt-load1.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
extend-pt-load2.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
extend-pt-load3.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
filename-spec.s Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
fill-exec-sections.s [ELF] Recommit r299635 to pad x86 executable sections with 0xcc 2017-04-07 10:36:42 +00:00
fill.test Convert more tests as linker scripts instead of assembly. 2018-03-01 04:21:42 +00:00
got-write-offset.s [ELF] Fix writing the content of the .got section in a wrong place. 2017-07-14 08:10:45 +00:00
group.s
header-addr.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
header-phdr.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
header-phdr2.s Don't allocate a header bellow address 0. 2018-03-01 15:25:46 +00:00
huge-temporary-file.s [ELF] - Fix mistype in comment. NFC. 2018-03-13 16:11:02 +00:00
i386-sections-max-va-overflow.s [ELF] - Check that output sections fit in address space. 2018-04-03 12:39:28 +00:00
image-base.s Run dos2unix on another file. NFC. 2018-01-30 18:05:56 +00:00
implicit-program-header.test [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
include-cycle.s [ELF] Fix issue with test when build path contains '@' 2017-09-11 15:55:54 +00:00
info-section-type.s [ELF] - Support COPY, INFO, OVERLAY output sections attributes. 2018-02-16 10:42:58 +00:00
input-order.s
input-sec-dup.s
insert-after.test [ELF] - Implement INSERT BEFORE. 2018-03-13 09:18:11 +00:00
insert-before.test [ELF] - Implement INSERT BEFORE. 2018-03-13 09:18:11 +00:00
insert-broken.test [ELF] - Implement INSERT BEFORE. 2018-03-13 09:18:11 +00:00
lazy-symbols.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
linker-script-in-search-path.s [ELF] Fall back to search dirs for linker scripts specified with -T 2017-11-20 15:43:20 +00:00
linkerscript.s [ELF] Keep tests from wrinting to the test directory. 2018-01-19 14:15:13 +00:00
lma-overflow.test [ELF] - Recommit r326892,r326893 "[ELF] - Report LMA region overflows." 2018-03-07 12:44:18 +00:00
loadaddr.s
locationcountererr.test [ELF} - Fix build bots. 2018-03-13 16:23:48 +00:00
locationcountererr2.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
map-file.test Make "Size" column in the map file one characters shorter. 2018-04-05 17:20:18 +00:00
map-file2.test Add a CIE with length 0 unconditionally. 2018-05-08 01:19:16 +00:00
memory-at.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
memory-data-commands.test [ELF] - Report error when memory region is overflowed by data commands. 2018-03-02 08:11:58 +00:00
memory-err.s [ELF] - Don't segfault when accessing location counter inside MEMORY command. 2017-08-17 08:47:21 +00:00
memory-loc-counter.test [ELF] - Support moving location counter when MEMORY is used. 2018-03-05 10:54:03 +00:00
memory-region-alignment.test This is PR36799. 2018-03-26 08:58:16 +00:00
memory.s [ELF, LinkerScript] Memory region name parsing fix 2017-07-26 21:51:09 +00:00
memory2.s [ELF] - Fix calculation of memory region offset. 2017-07-25 08:29:29 +00:00
memory3.s Remove trailing whitespace. 2017-12-12 20:00:30 +00:00
merge-header-load.s Put the header in the first PT_LOAD even if that PT_LOAD has a LMAExpr. 2018-01-29 03:44:44 +00:00
merge-sections-reloc.s
merge-sections-syms.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
merge-sections.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
multi-sections-constraint.s
multiple-tbss.s
no-pt-load.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
no-space.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
nobits-offset.s Align SHT_NOBITS sections is they are the first on a PT_LOAD. 2018-01-02 16:46:30 +00:00
noload.s [ELF] Don't add NOLOAD sections to segment 2018-04-05 13:23:59 +00:00
non-absolute.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
non-absolute2.test [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
non-alloc-segment.s [LLD][LinkerScript] Allow non-alloc sections to be assigned to segments. 2017-07-03 10:11:25 +00:00
non-alloc.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
numbers.s Make a few tests shorter. NFC. 2017-04-12 22:38:02 +00:00
obj-symbol-value.s
openbsd-bootdata.test [lld] Add REQUIRES: x86 where needed to tests 2018-06-06 13:56:51 +00:00
openbsd-randomize.s [lld] Add REQUIRES: x86 where needed to tests 2018-06-06 13:56:51 +00:00
openbsd-wxneeded.test [lld] Add REQUIRES: x86 where needed to tests 2018-06-06 13:56:51 +00:00
operators.test [ELF] - Linkerscript: support MIN and MAX. 2018-03-28 11:33:00 +00:00
orphan-align.s
orphan-discard.s [ELF] When placing orphans, handle case when last section is dead 2017-10-23 00:51:08 +00:00
orphan-end.s Tweak orphan section placement. 2017-09-19 17:29:58 +00:00
orphan-first-cmd.test [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
orphan-phdrs.s [ELF] - Do not remove empty output sections that are explicitly assigned to phdr in script. 2018-02-23 10:53:04 +00:00
orphan-report.s [ELF] - Implement --orphan-handling option. 2017-10-25 15:20:30 +00:00
orphan.s
orphans.s
ouputformat.s
out-of-order.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
output-too-large.s [ELF] - Check that output sections fit in address space. 2018-04-03 12:39:28 +00:00
outputarch.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
outsections-addr.s Make a few tests shorter. NFC. 2017-04-12 22:38:02 +00:00
overlapping-sections.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
page-size-align.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
page-size.s Make a few tests shorter. NFC. 2017-04-12 22:38:02 +00:00
parse-section-in-addr.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
phdr-check.s [ELF] Don't output headers into a segment if there's no space for them 2017-08-23 18:44:34 +00:00
phdrs-flags.s
phdrs.s Remove trailing whitespace. 2017-12-12 20:00:30 +00:00
provide-shared.s Add missing test. NFC. 2017-11-30 22:29:14 +00:00
provide-shared2.s [ELF] Create and export symbols provided by a linker script if they referenced by DSOs. 2018-02-27 07:18:07 +00:00
pt_gnu_eh_frame.s
region-alias.s [ELF] - Linkerscript: implement REGION_ALIAS. 2017-09-08 08:23:15 +00:00
repsection-symbol.s [ELF] - Do --hash-style=both by default. 2017-10-06 09:37:44 +00:00
repsection-va.s
rosegment.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
searchdir.s
section-align.s
section-metadata.s Fix pr32816. 2017-05-01 20:32:39 +00:00
section-metadata2.s [ELF] - Simplify test case. NFC. 2018-04-09 13:13:36 +00:00
sections-constraint.s Order writable executable sections before writable ones. 2017-05-26 17:23:25 +00:00
sections-constraint2.s
sections-constraint3.s
sections-constraint4.s
sections-constraint5.s
sections-gc.s
sections-gc2.s
sections-keep.s
sections-max-va-overflow.s [ELF] - Check that output sections fit in address space. 2018-04-03 12:39:28 +00:00
sections-padding.s [ELF] Recommit r299635 to pad x86 executable sections with 0xcc 2017-04-07 10:36:42 +00:00
sections-sort.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
sections-va-overflow.test [ELF] - Restrict section offsets that exceeds file size. 2018-03-13 08:47:17 +00:00
sections.s Error on trying to discard .dynamic. 2017-06-16 23:45:35 +00:00
segment-headers.s [ELF] Don't output headers into a segment if there's no space for them 2017-08-23 18:44:34 +00:00
segment-none.s [LLD][LinkerScript] Add support for segment NONE. 2017-06-19 15:28:58 +00:00
segment-start.s [ELF] - Do --hash-style=both by default. 2017-10-06 09:37:44 +00:00
sizeof.s
sizeofheaders.s
sort-constructors.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
sort-init.s
sort-nested.s
sort-non-script.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
sort.s
sort2.s
start-end.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
subalign.s Remove trailing whitespace. 2017-12-12 20:00:30 +00:00
symbol-assignexpr.s [ELF] - Linkerscript: Add `~` as separate math token. 2017-10-12 08:40:12 +00:00
symbol-conflict.s
symbol-memoryexpr.s Add memory ORIGIN and LENGTH expression support 2017-05-09 18:24:38 +00:00
symbol-only-flags.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
symbol-only.test [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
symbol-ordering-file.s Sort each InputSectionDescription individually. 2018-02-01 19:30:15 +00:00
symbol-ordering-file2.s [ELF] - Do not crash when trying to order --defsym/linker script symbols. 2018-04-10 09:44:44 +00:00
symbol-reserved.s [ELF] Generate symbol assignments for predefined symbols 2017-09-01 02:23:31 +00:00
symbolreferenced.s
symbols-non-alloc.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
symbols.s [ELF] - Simplify and improve symbols.s testcase. 2017-09-08 09:31:01 +00:00
synthetic-relsec-layout.s [ELF] - Do not ignore discarding of .rela.plt/.rela.dyn, allow doing custom layout for them. 2018-03-24 13:10:19 +00:00
synthetic-symbols1.test Add a CIE with length 0 unconditionally. 2018-05-08 01:19:16 +00:00
synthetic-symbols2.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
synthetic-symbols3.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
synthetic-symbols4.test Convert more .s files to linker script files. 2018-03-01 01:19:12 +00:00
tbss.s
thunk-gen-mips.s [ELF][MIPS] Fix crash in LLD when linking code that needs PIC thunks 2017-11-20 15:37:19 +00:00
ttext-script.s Prefer -Ttext over linker script values. 2017-06-20 01:51:50 +00:00
undef.s
unused-synthetic.s [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
unused-synthetic2.test [ELF] - Rename test cases to *.test. 2018-03-13 16:02:45 +00:00
va.s
version-linker-symbol.s Create reserved symbols early so they can be versioned. 2017-12-11 17:23:28 +00:00
version-script.s [ELF] Process linker scripts deeper when declaring symbols. 2018-02-28 05:55:56 +00:00
visibility.s
wildcards.s
wildcards2.s