[PATCH] D95198: [ELF] Fix program header alloc when first PT_LOAD is not at lowest VMA

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 10:51:23 PST 2021


psmith added a comment.

Thanks for the update and the link to D95199 <https://reviews.llvm.org/D95199> . Thanks also for pointing out that this is reliant on the PHDR command, that wasn't clear from the description (I can see it in the test now). I'll try and take a deeper look at the weekend. Apologies I can only do this in my spare time and it is a busy week at the moment.

It would be good to update the description. Out of interest does using --nmagic help? LLD will default to --no-nmagic which assumes the ELF file will be paged in via an OS and will allocate headers into the first loadable segment. It would be good to make sure that --nmagic is supported as that is likely to be used in embedded systems.


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