[PATCH] D30219: [compiler-rt][asan] Fix incorrect macro preventing ICF with MSVC
Etienne Bergeron via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 21 11:31:26 PST 2017
etienneb added a comment.
My other idea was to provide raw bytes and emit them into the code section.
char think[] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0xCC, 0xCC, 0xCC 0xCC, ... 0xCC };
Now, we rely on the compiler to produce a function that we are able to patch instead of hardcoding a function we can patch.
But still, we need to prevent ICF.
https://reviews.llvm.org/D30219
More information about the llvm-commits
mailing list