mirror of
https://github.com/AxioDL/lld.git
synced 2026-03-30 11:44:17 -07:00
25eb287cdb
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
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
|
|
}
|