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 72256 ELF/LinkerScript.h
ELF/LinkerScript.cpp
test/ELF/linkerscript/phdrs-flags.s
test/ELF/linkerscript/phdrs.s
|
Add a comment saying what you are doing. If I understand it, this just puts the first PT_LOAD from PHDRS in the vector. Also add a comment saying what the vector is.