diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2005-05-28 23:44:06 +0000 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2005-05-28 23:44:06 +0000 |
commit | d1b0dffff4be58782a15ebec6595de2447f63dc2 (patch) | |
tree | d07c74419c3531984ae620899fc9a0e9cf892797 /libc/sysdeps/linux/mips | |
parent | 83bb7f2166ccec164942b010130b285676d7cf3b (diff) |
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.
Diffstat (limited to 'libc/sysdeps/linux/mips')
-rw-r--r-- | libc/sysdeps/linux/mips/crt1.S | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/mips/crt1.S b/libc/sysdeps/linux/mips/crt1.S index 93f3b5e42..82090ae15 100644 --- a/libc/sysdeps/linux/mips/crt1.S +++ b/libc/sysdeps/linux/mips/crt1.S @@ -36,7 +36,6 @@ 02111-1307 USA. */ -#include <features.h> #include <sys/regdef.h> @@ -65,7 +64,7 @@ /* We need to call: - __uClibc_start_main (int (*main) (int, char **, char **), int argc, + __uClibc_main (int (*main) (int, char **, char **), int argc, char **argv, void (*init) (void), void (*fini) (void), void (*rtld_fini) (void), void *stack_end) */ @@ -76,7 +75,7 @@ .type _init,%function .type _fini,%function .type main,%function - .type __uClibc_start_main,%function + .type __uClibc_main,%function __start: #ifdef __PIC__ @@ -108,9 +107,9 @@ __start: sw $8, 16($29) /* fini */ sw $2, 20($29) /* rtld_fini */ sw $29, 24($29) /* stack_end */ - jal __uClibc_start_main + jal __uClibc_main hlt: - /* Crash if somehow `__uClibc_start_main' returns anyway. */ + /* Crash if somehow `__uClibc_main' returns anyway. */ b hlt .size __start,.-__start |