[PATCH] D59531: [ELF] Produce multiple PT_NOTE segments as needed
Jake Ehrlich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 14:54:39 PDT 2019
jakehehrlich added a comment.
> We don't know addresses at this point, and indeed we can't because the layout of the rest of the output file depends on how many program headers there are, which is decided by this function.
Yep I think the only correct solution then is to use one PT_NOTE per note section then. That's kind of a shame but I think all other behaviors have a counter example (academic or otherwise). We can't relay on vaddrs and there aren't any assumptions we can make about what the relative properties between the final vaddrs will be either because of linker scripts. One per is the only solution resistant to academic counter examples (that I personally think we should take seriously).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59531/new/
https://reviews.llvm.org/D59531
More information about the llvm-commits
mailing list