forked from OSchip/llvm-project
[PECOFF] Use INT3 instead of NOP.
This patch does not change the meaning of the program, but if something's wrong in the linker or the compiler and the control reaches to the gap of imported function table, it will stop immediately because of the presence of INT3. If NOP, it'd fall through to the next call instruction, which is usually a completely foreign function call. llvm-svn: 194860
This commit is contained in:
parent
515b1daad3
commit
fbd82d0813
|
@ -152,7 +152,7 @@ namespace {
|
|||
|
||||
uint8_t FuncAtomContent[] = {
|
||||
0xff, 0x25, 0x00, 0x00, 0x00, 0x00, // jmp *0x0
|
||||
0x90, 0x90 // nop; nop
|
||||
0xcc, 0xcc // int 3; int 3
|
||||
};
|
||||
|
||||
/// The defined atom for jump table.
|
||||
|
|
Loading…
Reference in New Issue