mirror of
https://github.com/corda/corda.git
synced 2025-06-19 07:38:22 +00:00
use link register to determine return address when appropriate in getStackTrace
On PowerPC and ARM, we can't rely on the return address having already been saved on the stack on entry to a thunk, so we must look for it in the link register instead.
This commit is contained in:
@ -1838,7 +1838,11 @@ class MyArchitecture: public Assembler::Architecture {
|
||||
|
||||
return index;
|
||||
}
|
||||
|
||||
|
||||
virtual bool hasLinkRegister() {
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual unsigned stackAlignmentInWords() {
|
||||
return StackAlignmentInWords;
|
||||
}
|
||||
|
Reference in New Issue
Block a user