summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-19 14:41:18 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-19 14:41:18 +0200
commit8ccd78e202c6f6e29b3ca30604b71323a4bfef8c (patch)
tree8dd395b5f6496727097177fec6fdc84816950f18
parentebce94f7a478b0af49412deadac2fbb18c88a27a (diff)
loader: fix comments
-rw-r--r--src/loader.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/loader.c b/src/loader.c
index 7e2a472..79dc3fb 100644
--- a/src/loader.c
+++ b/src/loader.c
@@ -165,13 +165,13 @@ raw_start(void *entry, int argc, const char *argv[])
// XXX: make this part of the linker when it's rewritten
#if ANDROID_X86_LINKER
__asm__("mov 2*4(%ebp),%eax"); /* entry */
- __asm__("mov 3*4(%ebp),%ecx"); /* original_argc */
- __asm__("mov 4*4(%ebp),%edx"); /* original_argv */
- __asm__("mov %edx,%esp"); /* Trim stack. */
- __asm__("push %edx"); /* New argv */
- __asm__("push %ecx"); /* New argc */
+ __asm__("mov 3*4(%ebp),%ecx"); /* argc */
+ __asm__("mov 4*4(%ebp),%edx"); /* argv */
+ __asm__("mov %edx,%esp"); /* trim stack. */
+ __asm__("push %edx"); /* push argv */
+ __asm__("push %ecx"); /* push argc */
__asm__("sub %edx,%edx"); /* no rtld_fini function */
- __asm__("jmp *%eax"); /* Goto entry. */
+ __asm__("jmp *%eax"); /* goto entry */
#else
warnx("raw_start not implemented for this asm platform, can't execute binaries.");
#endif