From d1b0dffff4be58782a15ebec6595de2447f63dc2 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sat, 28 May 2005 23:44:06 +0000 Subject: Add Peter Mazinger fini/crt compat patch. Select DL_FINI_CRT_COMPAT to be able to run apps built with 0.9.27. This also renames __uClibc_start_main to __uClibc_main. This compat option should be removed some time after 0.9.28 is released. Let me know if you don't like this change. --- libc/sysdeps/linux/i386/crt1.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/i386/crt1.S') diff --git a/libc/sysdeps/linux/i386/crt1.S b/libc/sysdeps/linux/i386/crt1.S index 47de89d9a..fe927d9eb 100644 --- a/libc/sysdeps/linux/i386/crt1.S +++ b/libc/sysdeps/linux/i386/crt1.S @@ -60,7 +60,7 @@ .type _init,%function .type _fini,%function .type main,%function - .type __uClibc_start_main,%function + .type __uClibc_main,%function _start: /* Clear the frame pointer. The ABI suggests this be done, to mark the outermost frame obviously. */ @@ -105,7 +105,7 @@ _start: /* Call the user's main function, and exit with its value. But let the libc call main. */ - call __uClibc_start_main@PLT + call __uClibc_main@PLT #else /* Push address of our own entry points to .fini and .init. */ pushl $_fini @@ -118,7 +118,7 @@ _start: /* Call the user's main function, and exit with its value. But let the libc call main. */ - call __uClibc_start_main + call __uClibc_main #endif hlt /* Crash if somehow `exit' does return. */ -- cgit v1.2.3