[PATCH] D64903: [ELF] Pad the last page of last PF_X PT_LOAD with traps when -z separate-code is specified

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 03:56:40 PDT 2019


peter.smith added a comment.

Although I don't think that it applies to this current patch as I believe that only part of -z separate-code is implemented here. A colleague of mine mentioned that if we have a linker script similar to GNU ld's default, where the .text section is before .rodata then we need to be careful not to include the ELF headers in the executable segment. This won't be an issue for LLD's default image layout as the ro-data comes before the .text.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64903/new/

https://reviews.llvm.org/D64903





More information about the llvm-commits mailing list