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

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 17 09:12:00 PDT 2017


ruiu added a comment.

Agreed. Before this, we used a filler pattern only when the linker script `=<fillexp>` feature was used. Now that we are going to fill the gap unconditionally. Therefore, the performance of doing that is important. As you wrote, we should set only to the gap and not the memory region that will immediately be overwritten. Also, for better memory locality, we should fill the gap in the callback function of `forEach`.


https://reviews.llvm.org/D30886





More information about the llvm-commits mailing list