Some scripts may look like this:
PHDRS { all PT_LOAD; } SECTIONS { .aaa : { *(.aaa) } : all; .bbb : { *(.bbb) } }
This patch will try to put section .bbb to segment 'all'
Paths
| Differential D24795
[ELF] Linkerscript: Try to put section to the last PT_LOAD, in case there is no exact segment specification ClosedPublic Authored by evgeny777 on Sep 21 2016, 5:41 AM.
Details Summary Some scripts may look like this: PHDRS { all PT_LOAD; } SECTIONS { .aaa : { *(.aaa) } : all; .bbb : { *(.bbb) } } This patch will try to put section .bbb to segment 'all'
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Oct 19 2016, 8:11 AM Closed by commit rL284600: [ELF] Choose default segment when it is not specified (authored by evgeny777). · Explain WhyOct 19 2016, 8:14 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 75155 lld/trunk/ELF/LinkerScript.cpp
lld/trunk/test/ELF/linkerscript/openbsd-randomize.s
lld/trunk/test/ELF/linkerscript/phdrs-flags.s
lld/trunk/test/ELF/linkerscript/phdrs.s
|