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:
@@ -167,7 +167,7 @@ skip_environ:
|
|||||||
1: ldrb w3, [x2], #1
|
1: ldrb w3, [x2], #1
|
||||||
strb w3, [x1], #1
|
strb w3, [x1], #1
|
||||||
cmp x2, x9
|
cmp x2, x9
|
||||||
bls 1b
|
blo 1b
|
||||||
copy_env_and_args:
|
copy_env_and_args:
|
||||||
// Copy argc and the environment array.
|
// Copy argc and the environment array.
|
||||||
mov x8, x10
|
mov x8, x10
|
||||||
@@ -204,7 +204,7 @@ cleanup:
|
|||||||
1: ldrb w3, [x5], #1
|
1: ldrb w3, [x5], #1
|
||||||
strb w3, [x7], #1
|
strb w3, [x7], #1
|
||||||
cmp x5, x9
|
cmp x5, x9
|
||||||
bls 1b
|
blo 1b
|
||||||
// Close file descriptors.
|
// Close file descriptors.
|
||||||
2: cmp x28, #-1 // is secondary fd set?
|
2: cmp x28, #-1 // is secondary fd set?
|
||||||
beq cleanup1 // not set
|
beq cleanup1 // not set
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ skip_environ:
|
|||||||
rep movsb # copy file name
|
rep movsb # copy file name
|
||||||
movq %r10, %rsi # file name
|
movq %r10, %rsi # file name
|
||||||
/* Preserve jump command. */
|
/* Preserve jump command. */
|
||||||
cmpq %r8, %r11 # decide copy direction
|
1: cmpq %r8, %r11 # decide copy direction
|
||||||
jb 1f # copy forward
|
jb 1f # copy forward
|
||||||
movq 48(%r8), %rax
|
movq 48(%r8), %rax
|
||||||
movq %rax, 48(%r11) # %r11->at_base
|
movq %rax, 48(%r11) # %r11->at_base
|
||||||
|
|||||||
Reference in New Issue
Block a user