* sysdeps/i386/dl-machine.h (RTLD_START): Don't use multi-line
	strings.
	(ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
This commit is contained in:
Andreas Jaeger 2001-04-02 11:39:54 +00:00
parent 0da1a9fda0
commit 2a56ca2a5a
2 changed files with 68 additions and 64 deletions

View File

@ -1,5 +1,9 @@
2001-04-02 Andreas Jaeger <aj@suse.de> 2001-04-02 Andreas Jaeger <aj@suse.de>
* sysdeps/i386/dl-machine.h (RTLD_START): Don't use multi-line
strings.
(ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
* sysdeps/ieee754/dbl-64/uroot.h: Add missing braces arount * sysdeps/ieee754/dbl-64/uroot.h: Add missing braces arount
initializers. initializers.
* sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Likewise. * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Likewise.

View File

@ -117,68 +117,68 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
and then redirect to the address it returns. */ and then redirect to the address it returns. */
#if !defined PROF && !__BOUNDED_POINTERS__ #if !defined PROF && !__BOUNDED_POINTERS__
# define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\ # define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\
.text .text\n\
.globl _dl_runtime_resolve .globl _dl_runtime_resolve\n\
.type _dl_runtime_resolve, @function .type _dl_runtime_resolve, @function\n\
.align 16 .align 16\n\
_dl_runtime_resolve: _dl_runtime_resolve:\n\
pushl %eax # Preserve registers otherwise clobbered. pushl %eax # Preserve registers otherwise clobbered.\n\
pushl %ecx pushl %ecx\n\
pushl %edx pushl %edx\n\
movl 16(%esp), %edx # Copy args pushed by PLT in register. Note movl 16(%esp), %edx # Copy args pushed by PLT in register. Note\n\
movl 12(%esp), %eax # that `fixup' takes its parameters in regs. movl 12(%esp), %eax # that `fixup' takes its parameters in regs.\n\
call fixup # Call resolver. call fixup # Call resolver.\n\
popl %edx # Get register content back. popl %edx # Get register content back.\n\
popl %ecx popl %ecx\n\
xchgl %eax, (%esp) # Get %eax contents end store function address. xchgl %eax, (%esp) # Get %eax contents end store function address.\n\
ret $8 # Jump to function address. ret $8 # Jump to function address.\n\
.size _dl_runtime_resolve, .-_dl_runtime_resolve .size _dl_runtime_resolve, .-_dl_runtime_resolve\n\
\n\
.globl _dl_runtime_profile .globl _dl_runtime_profile\n\
.type _dl_runtime_profile, @function .type _dl_runtime_profile, @function\n\
.align 16 .align 16\n\
_dl_runtime_profile: _dl_runtime_profile:\n\
pushl %eax # Preserve registers otherwise clobbered. pushl %eax # Preserve registers otherwise clobbered.\n\
pushl %ecx pushl %ecx\n\
pushl %edx pushl %edx\n\
movl 20(%esp), %ecx # Load return address movl 20(%esp), %ecx # Load return address\n\
movl 16(%esp), %edx # Copy args pushed by PLT in register. Note movl 16(%esp), %edx # Copy args pushed by PLT in register. Note\n\
movl 12(%esp), %eax # that `fixup' takes its parameters in regs. movl 12(%esp), %eax # that `fixup' takes its parameters in regs.\n\
call profile_fixup # Call resolver. call profile_fixup # Call resolver.\n\
popl %edx # Get register content back. popl %edx # Get register content back.\n\
popl %ecx popl %ecx\n\
xchgl %eax, (%esp) # Get %eax contents end store function address. xchgl %eax, (%esp) # Get %eax contents end store function address.\n\
ret $8 # Jump to function address. ret $8 # Jump to function address.\n\
.size _dl_runtime_profile, .-_dl_runtime_profile .size _dl_runtime_profile, .-_dl_runtime_profile\n\
.previous .previous\n\
"); ");
#else #else
# define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\ # define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\n\
.text .text\n\
.globl _dl_runtime_resolve .globl _dl_runtime_resolve\n\
.globl _dl_runtime_profile .globl _dl_runtime_profile\n\
.type _dl_runtime_resolve, @function .type _dl_runtime_resolve, @function\n\
.type _dl_runtime_profile, @function .type _dl_runtime_profile, @function\n\
.align 16 .align 16\n\
_dl_runtime_resolve: _dl_runtime_resolve:\n\
_dl_runtime_profile: _dl_runtime_profile:\n\
pushl %eax # Preserve registers otherwise clobbered. pushl %eax # Preserve registers otherwise clobbered.\n\
pushl %ecx pushl %ecx\n\
pushl %edx pushl %edx\n\
movl 16(%esp), %edx # Push the arguments for `fixup' movl 16(%esp), %edx # Push the arguments for `fixup'\n\
movl 12(%esp), %eax movl 12(%esp), %eax\n\
pushl %edx pushl %edx\n\
pushl %eax pushl %eax\n\
call fixup # Call resolver. call fixup # Call resolver.\n\
popl %edx # Pop the parameters popl %edx # Pop the parameters\n\
popl %ecx popl %ecx\n\
popl %edx # Get register content back. popl %edx # Get register content back.\n\
popl %ecx popl %ecx\n\
xchgl %eax, (%esp) # Get %eax contents end store function address. xchgl %eax, (%esp) # Get %eax contents end store function address.\n\
ret $8 # Jump to function address. ret $8 # Jump to function address.\n\
.size _dl_runtime_resolve, .-_dl_runtime_resolve .size _dl_runtime_resolve, .-_dl_runtime_resolve\n\
.size _dl_runtime_profile, .-_dl_runtime_profile .size _dl_runtime_profile, .-_dl_runtime_profile\n\
.previous .previous\n\
"); ");
#endif #endif
@ -190,8 +190,8 @@ _dl_runtime_profile:
The C function `_dl_start' is the real entry point; The C function `_dl_start' is the real entry point;
its return value is the user program's entry point. */ its return value is the user program's entry point. */
#define RTLD_START asm ("\ #define RTLD_START asm ("\n\
.text\n\ .text\n\
.align 16\n\ .align 16\n\
0: movl (%esp), %ebx\n\ 0: movl (%esp), %ebx\n\
ret\n\ ret\n\
@ -205,7 +205,7 @@ _start:\n\
_dl_start_user:\n\ _dl_start_user:\n\
# Save the user entry point address in %edi.\n\ # Save the user entry point address in %edi.\n\
movl %eax, %edi\n\ movl %eax, %edi\n\
# Point %ebx at the GOT. # Point %ebx at the GOT.\n\
call 0b\n\ call 0b\n\
addl $_GLOBAL_OFFSET_TABLE_, %ebx\n\ addl $_GLOBAL_OFFSET_TABLE_, %ebx\n\
# Store the highest stack address\n\ # Store the highest stack address\n\
@ -240,7 +240,7 @@ _dl_start_user:\n\
movl _dl_fini@GOT(%ebx), %edx\n\ movl _dl_fini@GOT(%ebx), %edx\n\
# Jump to the user's entry point.\n\ # Jump to the user's entry point.\n\
jmp *%edi\n\ jmp *%edi\n\
.previous\n\ .previous\n\
"); ");
#ifndef RTLD_START_SPECIAL_INIT #ifndef RTLD_START_SPECIAL_INIT