mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
LibELF: Make sure calls to _fixup_plt_entry use a properly aligned stack
This commit is contained in:
parent
06883ed8a3
commit
b11fe40240
1 changed files with 5 additions and 0 deletions
|
@ -28,7 +28,12 @@ _plt_trampoline: # (object, relocation_index)
|
|||
shlq $3, %rsi
|
||||
leaq (%rsi, %rsi, 2), %rsi
|
||||
|
||||
pushq %rbp
|
||||
movq %rsp, %rbp
|
||||
andq $~15, %rsp
|
||||
call _fixup_plt_entry@PLT
|
||||
movq %rbp, %rsp
|
||||
popq %rbp
|
||||
|
||||
movq %rax, 88(%rsp) # replace object argument with symbol address
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue