On 12/24/2010 04:21 PM, Yao Qi wrote: > Patch 2 is about handling i386 stack protector insns during prologue > analysis. Without patch 1, patch 2 doesn't work in some cases. Here is a prologue generated by GCC, instructions on [1] are for stack protector. push %ebp mov %esp,%ebp and $0xfffffff0,%esp add $0xffffff80,%esp mov %gs:0x14,%eax // <---- [1] mov %eax,0x7c(%esp) // <---- [1] xor %eax,%eax // <---- [1] Compared with instructions for arm stack protector, i386's counterpart is relatively simpler. This patch is to handle them in prologue parsing. Comments are welcome. -- Yao Qi