[PATCH] D30886: [ELF] Pad x86 executable sections with 0xcc int3 instructions

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 10:05:00 PDT 2017


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: ELF/OutputSections.cpp:257
+  // Write leading padding.
+  size_t FillSize = Sections.empty() ? Size : Sections.front()->OutSecOff;
+  fill(Buf, FillSize, Filler);
----------------
`Sections.front()` -> `Sections[0]`.


https://reviews.llvm.org/D30886





More information about the llvm-commits mailing list