Fix typos in executable loaders

* exec/loader-aarch64.s (skip_environ, cleanup): Minor thinkos.

* exec/loader-x86_64.s (skip_environ): Insert missing label.
This commit is contained in:
Po Lu 2025-04-14 09:10:14 +08:00
parent f7e34d52dc
commit 462bd149cd
2 changed files with 3 additions and 3 deletions

View file

@ -167,7 +167,7 @@ skip_environ:
1: ldrb w3, [x2], #1
strb w3, [x1], #1
cmp x2, x9
bls 1b
blo 1b
copy_env_and_args:
// Copy argc and the environment array.
mov x8, x10
@ -204,7 +204,7 @@ cleanup:
1: ldrb w3, [x5], #1
strb w3, [x7], #1
cmp x5, x9
bls 1b
blo 1b
// Close file descriptors.
2: cmp x28, #-1 // is secondary fd set?
beq cleanup1 // not set

View file

@ -162,7 +162,7 @@ skip_environ:
rep movsb # copy file name
movq %r10, %rsi # file name
/* Preserve jump command. */
cmpq %r8, %r11 # decide copy direction
1: cmpq %r8, %r11 # decide copy direction
jb 1f # copy forward
movq 48(%r8), %rax
movq %rax, 48(%r11) # %r11->at_base