瀏覽代碼

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.
Nico Weber 3 年之前
父節點
當前提交
a43ad0e706

+ 4 - 4
Userland/Libraries/LibELF/Arch/i386/entry.S

@@ -4,10 +4,10 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-    .align 4
-    .globl _invoke_entry
-    .hidden _invoke_entry
-    .type _invoke_entry,@function
+.align 4
+.globl _invoke_entry
+.hidden _invoke_entry
+.type _invoke_entry,@function
 _invoke_entry: # (argc, argv, envp, entry)
     addl $4, %esp # return address
     popl %edi # argc

+ 20 - 20
Userland/Libraries/LibELF/Arch/i386/plt_trampoline.S

@@ -33,26 +33,26 @@
  * _rtld_bind_start from libexec/ld.elf_so/arch/i386/rtld_start.S
  */
 
-.align	4
-	.globl	_plt_trampoline
-	.hidden	_plt_trampoline
-	.type	_plt_trampoline,@function
-_plt_trampoline:	# (obj, reloff)
-	pushf				# save registers
-	pushl	%eax
-	pushl	%ecx
-	pushl	%edx
+.align  4
+.globl  _plt_trampoline
+.hidden _plt_trampoline
+.type   _plt_trampoline,@function
+_plt_trampoline: # (obj, reloff)
+    pushf                        # save registers
+    pushl   %eax
+    pushl   %ecx
+    pushl   %edx
 
-	pushl	20(%esp)		 # Copy of reloff
-	pushl	20(%esp)		 # Copy of obj
-	call	_fixup_plt_entry@PLT # Call the binder
-	addl	$8,%esp			 # pop binder args
-	movl	%eax,20(%esp)	 # Store function to be called in obj
+    pushl   20(%esp)             # Copy of reloff
+    pushl   20(%esp)             # Copy of obj
+    call    _fixup_plt_entry@PLT # Call the binder
+    addl    $8,%esp              # pop binder args
+    movl    %eax,20(%esp)        # Store function to be called in obj
 
-	popl	%edx
-	popl	%ecx
-	popl	%eax
-	popf
+    popl    %edx
+    popl    %ecx
+    popl    %eax
+    popf
 
-	leal	4(%esp),%esp		# Discard reloff, do not change eflags
-	ret
+    leal    4(%esp),%esp         # Discard reloff, do not change eflags
+    ret

+ 4 - 4
Userland/Libraries/LibELF/Arch/x86_64/entry.S

@@ -4,10 +4,10 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-    .align 4
-    .globl _invoke_entry
-    .hidden _invoke_entry
-    .type _invoke_entry,@function
+.align 4
+.globl _invoke_entry
+.hidden _invoke_entry
+.type _invoke_entry,@function
 _invoke_entry: # (argc, argv, envp, entry)
     // The System V ABI for x86 and x86_64 prescribes that the stack pointer is 16-byte aligned
     andq $~15, %rsp

+ 4 - 4
Userland/Libraries/LibELF/Arch/x86_64/plt_trampoline.S

@@ -4,10 +4,10 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-    .align 4
-    .globl _plt_trampoline
-    .hidden _plt_trampoline
-    .type _plt_trampoline,@function
+.align 4
+.globl _plt_trampoline
+.hidden _plt_trampoline
+.type _plt_trampoline,@function
 _plt_trampoline: # (object, relocation_index)
      # save flags/registers (https://stackoverflow.com/questions/18024672/what-registers-are-preserved-through-a-linux-x86-64-function-call)
     pushfq