[PATCH] D32887: [ELF] Emit __ehdr_start when there is a segment containing program headers

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 5 20:03:43 PDT 2017


phosek added a comment.

That solution isn't going to work because it wouldn't handle case where we only have `SECTIONS` with enough space for headers. I have added a test case for that. A solution to avoid rescaning all relocations I have implemented is to simply collect all references to `__ehdr_start` during the existing scan and then report the error if needed.


Repository:
  rL LLVM

https://reviews.llvm.org/D32887





More information about the llvm-commits mailing list