[PATCH] D44775: [ELF] - Fill executable segments with trap instructions.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 28 10:23:23 PDT 2018
grimar added inline comments.
================
Comment at: ELF/Arch/X86.cpp:446
0xc3, // 2e: ret
+ 0xcc // 2f: int3; .align 48
};
----------------
ruiu wrote:
> Please remove `; .align 48` because that doesn't really explain what this code does. (Also we want to align it not to 48 but 16).
Actually, we want to align to `PltHeaderSize` I think, which is 48 here. Because if you align 32 to 16, you'll get
32 instead of 48 and that would not work.
https://reviews.llvm.org/D44775
More information about the llvm-commits
mailing list