diff options
| author | Po Lu | 2025-04-14 09:10:14 +0800 |
|---|---|---|
| committer | Po Lu | 2025-04-14 09:10:14 +0800 |
| commit | 462bd149cddc2a7ba81de7ad0c286bcb64681d69 (patch) | |
| tree | 49a3c20a74fe3945d9bd801c4722e272735c9a04 /exec | |
| parent | f7e34d52dcc175f3205e308ab57e83d7b0515792 (diff) | |
| download | emacs-462bd149cddc2a7ba81de7ad0c286bcb64681d69.tar.gz emacs-462bd149cddc2a7ba81de7ad0c286bcb64681d69.zip | |
Fix typos in executable loaders
* exec/loader-aarch64.s (skip_environ, cleanup): Minor thinkos.
* exec/loader-x86_64.s (skip_environ): Insert missing label.
Diffstat (limited to 'exec')
| -rw-r--r-- | exec/loader-aarch64.s | 4 | ||||
| -rw-r--r-- | exec/loader-x86_64.s | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/exec/loader-aarch64.s b/exec/loader-aarch64.s index 64f95725eca..376f439417f 100644 --- a/exec/loader-aarch64.s +++ b/exec/loader-aarch64.s | |||
| @@ -167,7 +167,7 @@ skip_environ: | |||
| 167 | 1: ldrb w3, [x2], #1 | 167 | 1: ldrb w3, [x2], #1 |
| 168 | strb w3, [x1], #1 | 168 | strb w3, [x1], #1 |
| 169 | cmp x2, x9 | 169 | cmp x2, x9 |
| 170 | bls 1b | 170 | blo 1b |
| 171 | copy_env_and_args: | 171 | copy_env_and_args: |
| 172 | // Copy argc and the environment array. | 172 | // Copy argc and the environment array. |
| 173 | mov x8, x10 | 173 | mov x8, x10 |
| @@ -204,7 +204,7 @@ cleanup: | |||
| 204 | 1: ldrb w3, [x5], #1 | 204 | 1: ldrb w3, [x5], #1 |
| 205 | strb w3, [x7], #1 | 205 | strb w3, [x7], #1 |
| 206 | cmp x5, x9 | 206 | cmp x5, x9 |
| 207 | bls 1b | 207 | blo 1b |
| 208 | // Close file descriptors. | 208 | // Close file descriptors. |
| 209 | 2: cmp x28, #-1 // is secondary fd set? | 209 | 2: cmp x28, #-1 // is secondary fd set? |
| 210 | beq cleanup1 // not set | 210 | beq cleanup1 // not set |
diff --git a/exec/loader-x86_64.s b/exec/loader-x86_64.s index 236f8d6670f..9340ac8fc65 100644 --- a/exec/loader-x86_64.s +++ b/exec/loader-x86_64.s | |||
| @@ -162,7 +162,7 @@ skip_environ: | |||
| 162 | rep movsb # copy file name | 162 | rep movsb # copy file name |
| 163 | movq %r10, %rsi # file name | 163 | movq %r10, %rsi # file name |
| 164 | /* Preserve jump command. */ | 164 | /* Preserve jump command. */ |
| 165 | cmpq %r8, %r11 # decide copy direction | 165 | 1: cmpq %r8, %r11 # decide copy direction |
| 166 | jb 1f # copy forward | 166 | jb 1f # copy forward |
| 167 | movq 48(%r8), %rax | 167 | movq 48(%r8), %rax |
| 168 | movq %rax, 48(%r11) # %r11->at_base | 168 | movq %rax, 48(%r11) # %r11->at_base |