From: Jan-Benedict G. <jb...@us...> - 2005-10-09 19:13:39
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28994 Added Files: uclibc-000010-temporary_rtld_fini_fixup.patch Log Message: - It seems rtld_fini is only used by the dynamic library loader, which we don't yet support. So I push NULL instead, to not execute anything. - Though this will need to be fixed at some time. --- NEW FILE: uclibc-000010-temporary_rtld_fini_fixup.patch --- diff -Nurp src-uclibc-fresh/libc/sysdeps/linux/vax/crt1.S src-uclibc-hacked/libc/sysdeps/linux/vax/crt1.S --- src-uclibc-fresh/libc/sysdeps/linux/vax/crt1.S 2005-10-09 21:03:39.000000000 +0200 +++ src-uclibc-hacked/libc/sysdeps/linux/vax/crt1.S 2005-10-09 21:08:28.000000000 +0200 @@ -36,7 +36,10 @@ _start: #if (defined L_crt1 || defined L_gcrt1) && defined __UCLIBC_CTOR_DTOR__ pushl %r0 # stack_end - pushl $2 # rtld_fini, some magic value stolen from the MIPS port + pushl $0 # rtld_fini. This is probably needed for the case + # where a dynamic linker is involved. So this is + # an open FIXME that needs to be addressed at some + # time... pushl $_fini pushl $_init pushl %r3 /* Argument pointer */ @@ -53,7 +56,7 @@ _start: * void *stack_end); */ calls $7, __uClibc_main -#else +#else /* FIXME: THIS IS BROKEN!!! */ /* start to load the arguments from the stack */ /* arguments are on ap stack */ pushl %r2 |