[klibc] Fix segfault in new exit code on parisc, klibc-1.1.3
Jeff Bailey
jbailey at ubuntu.com
Wed Dec 7 11:13:54 PST 2005
parisc is currently passing argc as the second argument to __libc_init:
--- crt0.S.old 2005-12-07 19:06:07.000000000 +0000
+++ crt0.S 2005-12-07 19:06:40.000000000 +0000
@@ -25,6 +25,10 @@
ldil L%$global$, %dp
ldo R%$global$(%dp), %dp
+/* Indicate that we don't need no stinkin' atexit callback */
+
+ ldi 0,%r25
+
/* branch to __libc_init */
bl __libc_init,%r2
nop
Thanks to Kyle McMartin for helping with this.
* Canonical Ltd * Ubuntu Service and Support * +1 514 691 7221 *
Linux for Human Beings.
More information about the klibc
mailing list