mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-28 04:03:35 +08:00
Newer kernels don't like register-frames with more than 8 output registers. Fix this by passing original ar.pfs to _mcount_ret_helper via r3.
This commit is contained in:
parent
a4c54197c2
commit
fafee7a02c
@ -72,6 +72,7 @@ LEAF(_mcount)
|
||||
mov b7 = loc0
|
||||
mov rp = in2
|
||||
;;
|
||||
mov r3 = in0
|
||||
mov r8 = loc2
|
||||
mov r15 = loc3
|
||||
mov b6 = r2
|
||||
@ -81,10 +82,10 @@ END(_mcount)
|
||||
LOCAL_LEAF(_mcount_ret_helper)
|
||||
.prologue
|
||||
.altrp b7
|
||||
.save ar.pfs, r40
|
||||
.save ar.pfs, r3
|
||||
.body
|
||||
alloc r2 = ar.pfs, 0, 0, 9, 0
|
||||
mov ar.pfs = r40
|
||||
alloc r2 = ar.pfs, 0, 0, 8, 0
|
||||
mov ar.pfs = r3
|
||||
br b7
|
||||
END(_mcount_ret_helper)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user