about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-31 08:21:01 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-31 08:21:01 +0000
commit9ad04ff7e0522935bbaa0d83bac81fc0b947e95e (patch)
treef4ded95aafabbb4e8fbc9b709a4c13670d6a2a65 /sysdeps
parent7688db9129490d0f31f4e05f3d439b9423d63aa9 (diff)
downloadglibc-9ad04ff7e0522935bbaa0d83bac81fc0b947e95e.tar.gz
glibc-9ad04ff7e0522935bbaa0d83bac81fc0b947e95e.tar.xz
glibc-9ad04ff7e0522935bbaa0d83bac81fc0b947e95e.zip
Update.
2000-03-31  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
	* elf/dl-support.c: Define _dl_starting_up.

	* elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
	* misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
	elements.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/i386/dl-machine.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h
index 74f2eb3448..507a69d338 100644
--- a/sysdeps/i386/dl-machine.h
+++ b/sysdeps/i386/dl-machine.h
@@ -196,6 +196,10 @@ _dl_runtime_profile:
 
 #define RTLD_START asm ("\
 .text\n\
+	.align 16\n\
+0:	movl (%esp), %ebx\n\
+	ret\n\
+	.align 16\n\
 .globl _start\n\
 .globl _dl_start_user\n\
 _start:\n\
@@ -206,9 +210,8 @@ _dl_start_user:\n\
 	# Save the user entry point address in %edi.\n\
 	movl %eax, %edi\n\
 	# Point %ebx at the GOT.
-	call 0f\n\
-0:	popl %ebx\n\
-	addl $_GLOBAL_OFFSET_TABLE_+[.-0b], %ebx\n\
+	call 0b\n\
+	addl $_GLOBAL_OFFSET_TABLE_, %ebx\n\
 	# Store the highest stack address\n\
 	movl __libc_stack_end@GOT(%ebx), %eax\n\
 	movl %esp, (%eax)\n\