[PATCH] D44943: Fill the last page of each executable section with 0xcc or equivalent.

Rafael Avila de Espindola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 28 19:46:14 PDT 2018


espindola added inline comments.


================
Comment at: lld/ELF/Writer.cpp:2211
+      continue;
+    fillTrap(Buf + alignDown(Sec->Offset + Sec->Size, Target->PageSize));
+  }
----------------
Iterating over OutputSections seems like a good idea, but couldn't this fill just the area between two sections?


https://reviews.llvm.org/D44943





More information about the llvm-commits mailing list