Files
clang-p2996/lld/test/ELF/linkerscript/Inputs/implicit-program-header.script
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

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
}