mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Bug 402480 Do not use %esp in clobber list.
This is the same fix as for amd64-linux, but now for x86-linux.
This commit is contained in:
parent
2c1f016e63
commit
c512949082
@ -12,12 +12,14 @@ static void inner(void)
|
||||
"movl $0x105, %%esi\n"
|
||||
"movl $0x106, %%edi\n"
|
||||
// not %ebp as mdb is then not able to reconstruct stack trace
|
||||
// clobbering %esp is really bad, but that is kind of the point
|
||||
// we don't add it to the clobber list since gcc9 warns about that
|
||||
"movl $0x108, %%esp\n"
|
||||
"movl $0x1234, (%%eax)\n" // should cause SEGV here
|
||||
"ud2" // should never get here
|
||||
: // no output registers
|
||||
: // no input registers
|
||||
: "memory", "%eax", "%ebx", "%ecx", "%edx", "%esi", "%edi", "%esp");
|
||||
: "memory", "%eax", "%ebx", "%ecx", "%edx", "%esi", "%edi");
|
||||
}
|
||||
|
||||
__attribute__((noinline))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user