[PATCH] Another Alpha glibc patch
Jakub Jelinek
jakub@redhat.com
Tue Apr 25 00:16:00 GMT 2000
Hi!
With this in and a backport of the short complex patch in gcc 2.95.x I was able to build
alpha glibc finally :).
2000-04-25 Jakub Jelinek <jakub@redhat.com>
* sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
handling.
--- libc/sysdeps/alpha/dl-machine.h.jj Tue Apr 18 08:13:24 2000
+++ libc/sysdeps/alpha/dl-machine.h Tue Apr 25 08:57:44 2000
@@ -291,7 +291,7 @@ _dl_start_user:
/* See if we were run as a command with the executable file
name as an extra leading argument. */
ldl $1, _dl_skip_args
- beq $1, $fixup_stack
+ bne $1, $fixup_stack
$fixup_stack_ret:
/* The special initializer gets called with the stack just
as the application's entry point will see it; it can
@@ -316,7 +316,7 @@ $fixup_stack:
ldq $2, 0($sp)
subq $2, $1, $2
mov $sp, $4
- s8addq $2, $sp, $3
+ s8addq $1, $sp, $3
stq $2, 0($sp)
/* Copy down argv. */
0: ldq $5, 8($3)
Jakub
More information about the Libc-hacker
mailing list