[PATCH] D95198: [ELF] Fix program header alloc when first PT_LOAD is not at lowest VMA
Patrick Oppenlander via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 17:08:38 PST 2021
pattop added a comment.
I've also found no good reason why BFD ld forces the program headers to reside in the first PT_LOAD segment. This change was based on that logic.
Perhaps a better change would be to find a PT_LOAD segment with FILEHDR or PHDRS specified and allocate the headers there.
BFD ld also supports multiple PT_LOAD segments specifying FILEHDR or PHDRS. I don't know if that needs to be supported or what the use case for it is.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95198/new/
https://reviews.llvm.org/D95198
More information about the llvm-commits
mailing list