Files
lld/test/ELF/linkerscript/Inputs/implicit-program-header.script
Rafael Espindola 25eb287cdb 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.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@286837 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-14 15:39:38 +00:00

13 lines
166 B
Plaintext

PHDRS
{
ph_write PT_LOAD FLAGS(2);
ph_exec PT_LOAD FLAGS(1);
}
SECTIONS
{
.bar : { *(.bar) } : ph_exec
.foo : { *(.foo) }
.text : { *(.text) } : ph_write
}