From 0a63529d383b641b3541692a5df9a996e51cdcb6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 Apr 2000 07:05:57 +0000 Subject: Update. 2000-04-03 Ulrich Drepper * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more instruction out of the code. --- sysdeps/i386/dl-machine.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'sysdeps/i386/dl-machine.h') diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h index 753f12678f..5220d923b7 100644 --- a/sysdeps/i386/dl-machine.h +++ b/sysdeps/i386/dl-machine.h @@ -220,25 +220,24 @@ _dl_start_user:\n\ movl _dl_skip_args@GOT(%ebx), %eax\n\ movl (%eax), %eax\n\ # Pop the original argument count.\n\ - popl %esi\n\ + popl %edx\n\ # Adjust the stack pointer to skip _dl_skip_args words.\n\ leal (%esp,%eax,4), %esp\n\ # Subtract _dl_skip_args from argc.\n\ - subl %eax, %esi\n\ + subl %eax, %edx\n\ # Push argc back on the stack.\n\ - push %esi\n\ + push %edx\n\ # The special initializer gets called with the stack just\n\ # as the application's entry point will see it; it can\n\ # switch stacks if it moves these contents over.\n\ " RTLD_START_SPECIAL_INIT "\n\ # Load the parameters again.\n\ # (eax, edx, ecx, *--esp) = (_dl_loaded, argc, argv, envp)\n\ - leal 8(%esp,%esi,4), %edx\n\ + movl _dl_loaded@GOT(%ebx), %esi\n\ + leal 8(%esp,%edx,4), %eax\n\ leal 4(%esp), %ecx\n\ - pushl %edx\n\ - movl %esi, %edx\n\ - movl _dl_loaded@GOT(%ebx), %eax\n\ - movl (%eax), %eax\n\ + pushl %eax\n\ + movl (%esi), %eax\n\ # Call the function to run the initializers.\n\ call _dl_init@PLT\n\ # Pass our finalizer function to the user in %edx, as per ELF ABI.\n\ -- cgit v1.2.3