As a follow up to r222001, Peter Bergner pointed out that there is

nothing 64-bit-specific about the PowerPC stack overflow detection.

llvm-svn: 222084
This commit is contained in:
Jay Foad 2014-11-15 13:52:10 +00:00
parent 5d363ead09
commit eb392de411
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ void AsanOnSIGSEGV(int, void *siginfo, void *context) {
// probably a stack overflow.
bool IsStackAccess = addr + 512 > sp && addr < sp + 0xFFFF;
#if __powerpc64__
#if __powerpc__
// Large stack frames can be allocated with e.g.
// lis r0,-10000
// stdux r1,r1,r0 # store sp to [sp-10000] and update sp by -10000
@ -69,7 +69,7 @@ void AsanOnSIGSEGV(int, void *siginfo, void *context) {
(opcd == 31 && (xo == 247 || xo == 439 || xo == 183 || xo == 181))))
IsStackAccess = true;
}
#endif // __powerpc64__
#endif // __powerpc__
// We also check si_code to filter out SEGV caused by something else other
// then hitting the guard page or unmapped memory, like, for example,