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
13 lines
166 B
Plaintext
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
|
|
}
|