]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typos in executable loaders
authorPo Lu <luangruo@yahoo.com>
Mon, 14 Apr 2025 01:10:14 +0000 (09:10 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 16 Apr 2025 07:34:15 +0000 (09:34 +0200)
* exec/loader-aarch64.s (skip_environ, cleanup): Minor thinkos.

* exec/loader-x86_64.s (skip_environ): Insert missing label.

(cherry picked from commit 462bd149cddc2a7ba81de7ad0c286bcb64681d69)

exec/loader-aarch64.s
exec/loader-x86_64.s

index 64f95725eca4e0ede16effc6daf6142c228b36d6..376f439417f7bff5645fd727a2fc596f10a7f4ff 100644 (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
index 236f8d6670fa136339e6f601b3e6ab3196faebbd..9340ac8fc6553f69721b6137d250b3e6bbec8a89 100644 (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