diff options
author | cognet <cognet@FreeBSD.org> | 2004-09-28 14:41:15 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-09-28 14:41:15 +0000 |
commit | a450d7f91f6f8e8442720f4a3ecd2ab07d5a77da (patch) | |
tree | b7caf41a71a2edadc63ab7ae2543c49e11ca7991 /libexec/rtld-elf | |
parent | 951f5beb42750c45f6379527ab998114ccc15e08 (diff) | |
download | FreeBSD-src-a450d7f91f6f8e8442720f4a3ecd2ab07d5a77da.zip FreeBSD-src-a450d7f91f6f8e8442720f4a3ecd2ab07d5a77da.tar.gz |
Use add instead of saving the sp in a register.
Diffstat (limited to 'libexec/rtld-elf')
-rw-r--r-- | libexec/rtld-elf/arm/rtld_start.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/rtld-elf/arm/rtld_start.S b/libexec/rtld-elf/arm/rtld_start.S index 1789791..da22c57 100644 --- a/libexec/rtld-elf/arm/rtld_start.S +++ b/libexec/rtld-elf/arm/rtld_start.S @@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$"); .globl .rtld_start .type .rtld_start,%function .rtld_start: - mov r6, sp sub sp, sp, #8 /* make room for obj_main & exit proc */ mov r4, r0 /* save ps_strings */ ldr sl, .L2 @@ -60,7 +59,7 @@ __FBSDID("$FreeBSD$"); bl _rtld_relocate_nonplt_self mov r1, sp add r2, sp, #4 - mov r0, r6 /* sp */ + add r0, sp, #8 bl _rtld /* call the shared loader */ mov r3, r0 /* save entry point */ |