summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-05-28 23:44:06 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-05-28 23:44:06 +0000
commitd1b0dffff4be58782a15ebec6595de2447f63dc2 (patch)
treed07c74419c3531984ae620899fc9a0e9cf892797 /libc/sysdeps/linux/i386
parent83bb7f2166ccec164942b010130b285676d7cf3b (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/i386')
-rw-r--r--libc/sysdeps/linux/i386/crt1.S6
1 files changed, 3 insertions, 3 deletions
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. */