Do not add .interp, .dynamic nor .eh_frame_hdr to segments just by type.
Summary: We previously added these output sections to segments just by type. Therefore, if there's a PHDRS command like this PHDRS { headers PT_PHDR PHDRS; interp PT_INTERP; } SECTIONS { . = SIZEOF_HEADERS; .interp : { *(.interp) } :text } then .interp was added to "interp" segment even though the linker is not instructed to do so by SECTIONS command. This patch removes the default behavior to simplify. Differential Revision: https://reviews.llvm.org/D23702 llvm-svn: 279414
Loading
Please sign in to comment