llvm-project/lld/test/ELF/linkerscript
Rafael Espindola f7a1744803 Fix program header propagation.
Propagate program headers by walking the commands, not the
sections. This allows us to propagate program headers even from
sections that don't end up in the output.

Fixes pr30997.

llvm-svn: 286837
2016-11-14 15:39:38 +00:00
..
Inputs Fix program header propagation. 2016-11-14 15:39:38 +00:00
absolute-expr.s Remove string table offsets from tests. 2016-11-01 21:26:28 +00:00
absolute.s Read an expression in the form of "ABSOLUTE(<expr>) op <expr> ...". 2016-10-19 23:11:21 +00:00
addr.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
align-empty.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
align.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
alignof.s Linker script: implement ALIGNOF 2016-09-08 09:08:30 +00:00
alternate-sections.s Add an interesting test. 2016-09-14 18:06:02 +00:00
assert.s Improve handling ASSERT outside SECTIONS block 2016-09-16 15:30:47 +00:00
at.s Disable --rosegment when we have linker scripts. 2016-09-20 15:22:27 +00:00
comdat-gc.s Linkerscript: don't crash when GC .debug_line 2016-09-26 09:04:16 +00:00
common.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
data-commands.s [ELF] - Linkerscript: implemented BYTE/SHORT/LONG/QUAD commands. 2016-09-26 19:22:50 +00:00
data-segment-relro.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
define.s [ELF] - Linkerscript: implement DEFINED() command. 2016-09-23 13:17:23 +00:00
diagnostic.s Use FileCheck's -strict-whitespace option instead of sed. 2016-10-21 17:50:26 +00:00
discard-interp.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
discard-section.s Alternative fix for reloc tareting discarded section 2016-10-12 12:31:34 +00:00
dot-is-not-abs.s The expr '.' is not absolute. 2016-10-31 21:36:23 +00:00
double-bss.s Rewrite CommonInputSection as a synthetic input section. 2016-11-05 23:05:47 +00:00
dynamic.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
edata-etext.s [ELF] Better error reporting for undefined symbols 2016-10-26 11:07:09 +00:00
eh-frame-hdr.s Make tests less dependent on the exact layout. 2016-09-20 15:08:24 +00:00
ehdr_start.s [ELF] Better error reporting for undefined symbols 2016-10-26 11:07:09 +00:00
empty-load.s [ELF] Don't emit empty PT_LOAD segment 2016-10-10 15:09:44 +00:00
empty-tls.s Don't crash if PT_TLS is empty. 2016-07-29 19:24:27 +00:00
exclude-multiple.s [ELF] - Linkerscript: reimplement readSectionExcludes() 2016-09-21 08:53:21 +00:00
excludefile.s Don't CHECK the addresses. NFC 2016-09-19 18:58:30 +00:00
extend-pt-load.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
filename-spec.s Make tests less dependent on the exact layout. 2016-09-20 15:08:24 +00:00
fill.s Make tests less dependent on the exact layout. 2016-09-20 15:08:24 +00:00
implicit-program-header.s Fix program header propagation. 2016-11-14 15:39:38 +00:00
input-order.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
input-sec-dup.s Make tests less dependent on the exact layout. 2016-09-20 15:08:24 +00:00
linkerscript.s Allow linker-script-defined entry symbols. 2016-10-20 00:07:36 +00:00
linkerscript2.s
loadaddr.s [ELF] Linker script: implement LOADADDR 2016-10-06 09:39:28 +00:00
locationcounter.s [ELF] Use MaxPageSize for aligning PT_LOAD 2016-09-28 00:09:20 +00:00
merge-sections-reloc.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
merge-sections.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
multi-sections-constraint.s Make test less dependent on the section order. 2016-09-20 20:48:54 +00:00
multiple-tbss.s Fix VA computation for tbss. 2016-09-22 12:35:44 +00:00
no-space.s Start linker scripts at 0. 2016-09-30 00:16:11 +00:00
non-alloc.s Don't put ro before rx when using linker scripts. 2016-09-29 22:48:55 +00:00
numbers.s Remove trailing whitespace. 2016-10-05 20:09:50 +00:00
openbsd-randomize.s [ELF] Choose default segment when it is not specified 2016-10-19 15:04:49 +00:00
openbsd-wxneeded.s [ELF] - Update testcases after llvm change. 2016-10-18 11:11:03 +00:00
orphan-align.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
orphan.s [ELF] Test case update (orphan.s) 2016-11-08 11:11:23 +00:00
orphans.s Revert "Revert "Only restrict order if both sections are in the script."" 2016-09-20 22:43:15 +00:00
ouputformat.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
outputarch.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
outsections-addr.s [ELF] Change the way we compute file offsets 2016-09-29 09:20:33 +00:00
page-size.s [ELF] Support -z max-page-size option 2016-09-28 15:20:47 +00:00
phdr-check.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
phdrs-flags.s [ELF] Choose default segment when it is not specified 2016-10-19 15:04:49 +00:00
phdrs.s Don't include PHDRs if linker script doesn't want them 2016-10-20 09:39:09 +00:00
repsection-symbol.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
repsection-va.s Make test less dependent on the section order. 2016-09-20 20:48:54 +00:00
rosegment.s Disable --rosegment when we have linker scripts. 2016-09-20 15:22:27 +00:00
sections-constraint.s [ELF] Heuristic for placing orphan section 2016-11-08 10:44:48 +00:00
sections-constraint2.s Fix constraint checking in ONLY_IF_RO. 2016-09-16 20:34:02 +00:00
sections-constraint3.s Only process commands in a ONLY_IF_RO if it matches. 2016-09-16 21:05:36 +00:00
sections-constraint4.s [ELF] Linkerscript: fixed bug about commands processing. 2016-09-17 09:50:10 +00:00
sections-constraint5.s Implement ONLY_IF_RO/ONLY_IF_RW like bfd. 2016-09-21 18:33:44 +00:00
sections-keep.s Include version string into ".comment" section. 2016-11-10 20:20:37 +00:00
sections-padding.s [ELF] - Linkerscript: accept space between '=' and expression in section filler. 2016-09-23 13:29:20 +00:00
sections-sort.s Include version string into ".comment" section. 2016-11-10 20:20:37 +00:00
sections.s Include version string into ".comment" section. 2016-11-10 20:20:37 +00:00
segment-start.s [ELF] - SEGMENT_START's default argument can be an expression 2016-09-17 18:14:56 +00:00
sizeof.s Make tests less dependent on the exact layout. 2016-09-20 15:08:24 +00:00
sizeofheaders.s Disable --rosegment when we have linker scripts. 2016-09-20 15:22:27 +00:00
sort-constructors.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
sort-init.s [ELF] - Linkerscript: implemented SORT_BY_INIT_PRIORITY. 2016-09-15 19:15:12 +00:00
sort-nested.s Make tests less dependent on the exact layout. 2016-09-20 15:08:24 +00:00
sort-non-script.s Don't put ro before rx when using linker scripts. 2016-09-29 22:48:55 +00:00
sort.s Simplify SORT and --sort-section command line option handling. 2016-09-20 19:42:41 +00:00
sort2.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
start-end.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
subalign.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
symbol-assignexpr.s [ELF] Use MaxPageSize for aligning PT_LOAD 2016-09-28 00:09:20 +00:00
symbol-conflict.s The expr '.' is not absolute. 2016-10-31 21:36:23 +00:00
symbol-only.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
symbolreferenced.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
symbols-synthetic.s Mark a few more expressions as absolute. 2016-10-31 18:20:34 +00:00
symbols.s The expr '.' is not absolute. 2016-10-31 21:36:23 +00:00
tbss.s Don't depend on lld creating space for the headers. 2016-09-30 00:06:24 +00:00
undef.s Remove useless file prefix. 2016-09-02 20:40:53 +00:00
va.s Start linker scripts at 0. 2016-09-30 00:16:11 +00:00
visibility.s Correctly merge visibility of linkerscript created symbols. 2016-10-31 13:14:53 +00:00
wildcards.s Include version string into ".comment" section. 2016-11-10 20:20:37 +00:00
wildcards2.s Make tests less dependent on the exact layout. 2016-09-20 15:08:24 +00:00