mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +00:00
LibELF: Reindent .S files to be consistent with other .S files
Most .S files don't indent directives, so don't indent them here either. Also, one file had tabs instead of spaces, `:retab` that file.
This commit is contained in:
parent
7052f403c8
commit
a43ad0e706
4 changed files with 32 additions and 32 deletions
|
@ -4,10 +4,10 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.align 4
|
.align 4
|
||||||
.globl _invoke_entry
|
.globl _invoke_entry
|
||||||
.hidden _invoke_entry
|
.hidden _invoke_entry
|
||||||
.type _invoke_entry,@function
|
.type _invoke_entry,@function
|
||||||
_invoke_entry: # (argc, argv, envp, entry)
|
_invoke_entry: # (argc, argv, envp, entry)
|
||||||
addl $4, %esp # return address
|
addl $4, %esp # return address
|
||||||
popl %edi # argc
|
popl %edi # argc
|
||||||
|
|
|
@ -33,26 +33,26 @@
|
||||||
* _rtld_bind_start from libexec/ld.elf_so/arch/i386/rtld_start.S
|
* _rtld_bind_start from libexec/ld.elf_so/arch/i386/rtld_start.S
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.align 4
|
.align 4
|
||||||
.globl _plt_trampoline
|
.globl _plt_trampoline
|
||||||
.hidden _plt_trampoline
|
.hidden _plt_trampoline
|
||||||
.type _plt_trampoline,@function
|
.type _plt_trampoline,@function
|
||||||
_plt_trampoline: # (obj, reloff)
|
_plt_trampoline: # (obj, reloff)
|
||||||
pushf # save registers
|
pushf # save registers
|
||||||
pushl %eax
|
pushl %eax
|
||||||
pushl %ecx
|
pushl %ecx
|
||||||
pushl %edx
|
pushl %edx
|
||||||
|
|
||||||
pushl 20(%esp) # Copy of reloff
|
pushl 20(%esp) # Copy of reloff
|
||||||
pushl 20(%esp) # Copy of obj
|
pushl 20(%esp) # Copy of obj
|
||||||
call _fixup_plt_entry@PLT # Call the binder
|
call _fixup_plt_entry@PLT # Call the binder
|
||||||
addl $8,%esp # pop binder args
|
addl $8,%esp # pop binder args
|
||||||
movl %eax,20(%esp) # Store function to be called in obj
|
movl %eax,20(%esp) # Store function to be called in obj
|
||||||
|
|
||||||
popl %edx
|
popl %edx
|
||||||
popl %ecx
|
popl %ecx
|
||||||
popl %eax
|
popl %eax
|
||||||
popf
|
popf
|
||||||
|
|
||||||
leal 4(%esp),%esp # Discard reloff, do not change eflags
|
leal 4(%esp),%esp # Discard reloff, do not change eflags
|
||||||
ret
|
ret
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.align 4
|
.align 4
|
||||||
.globl _invoke_entry
|
.globl _invoke_entry
|
||||||
.hidden _invoke_entry
|
.hidden _invoke_entry
|
||||||
.type _invoke_entry,@function
|
.type _invoke_entry,@function
|
||||||
_invoke_entry: # (argc, argv, envp, entry)
|
_invoke_entry: # (argc, argv, envp, entry)
|
||||||
// The System V ABI for x86 and x86_64 prescribes that the stack pointer is 16-byte aligned
|
// The System V ABI for x86 and x86_64 prescribes that the stack pointer is 16-byte aligned
|
||||||
andq $~15, %rsp
|
andq $~15, %rsp
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.align 4
|
.align 4
|
||||||
.globl _plt_trampoline
|
.globl _plt_trampoline
|
||||||
.hidden _plt_trampoline
|
.hidden _plt_trampoline
|
||||||
.type _plt_trampoline,@function
|
.type _plt_trampoline,@function
|
||||||
_plt_trampoline: # (object, relocation_index)
|
_plt_trampoline: # (object, relocation_index)
|
||||||
# save flags/registers (https://stackoverflow.com/questions/18024672/what-registers-are-preserved-through-a-linux-x86-64-function-call)
|
# save flags/registers (https://stackoverflow.com/questions/18024672/what-registers-are-preserved-through-a-linux-x86-64-function-call)
|
||||||
pushfq
|
pushfq
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue