aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/start.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-24 07:44:08 +0000
committerRoland McGrath <roland@gnu.org>1995-03-24 07:44:08 +0000
commita04e740593c921d45de28bb5ccafe46f9f772769 (patch)
treeb82eea004d5ff062879e8c4b68b9b6bc61c2708a /sysdeps/unix/start.c
parent3ef21326e9f4644ce4058b7ceabd3bc6f10be374 (diff)
downloadglibc-a04e740593c921d45de28bb5ccafe46f9f772769.zip
glibc-a04e740593c921d45de28bb5ccafe46f9f772769.tar.gz
glibc-a04e740593c921d45de28bb5ccafe46f9f772769.tar.bz2
Fri Mar 24 02:35:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdio/printf-parse.h: New file, mostly written by drepper. * stdio/vfprintf.c: Rewritten, mostly by drepper. * stdio/printf-prs.c: Rewritten. * stdio/Makefile (distribute): Add printf-parse.h. Thu Mar 23 22:03:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start with asm name. Just do a ".set start, __start". * malloc/realloc.c: Call _free_internal instead of free. * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
Diffstat (limited to 'sysdeps/unix/start.c')
-rw-r--r--sysdeps/unix/start.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/sysdeps/unix/start.c b/sysdeps/unix/start.c
index 62c9bd9..c00aa5c 100644
--- a/sysdeps/unix/start.c
+++ b/sysdeps/unix/start.c
@@ -48,13 +48,6 @@ static void start1();
#ifndef HAVE__start
-#if !defined (NO_UNDERSCORES) && defined (__GNUC__)
-/* Declare _start with an explicit assembly symbol name of `start'
- (note no leading underscore). This is the name vendor crt0.o's
- tend to use, and thus the name most linkers expect. */
-void _start (void) asm ("start");
-#endif
-
/* N.B.: It is important that this be the first function.
This file is the first thing in the text section. */
void
@@ -63,17 +56,20 @@ DEFUN_VOID(_start)
start1();
}
-#if !defined (NO_UNDERSCORES) && defined (HAVE_WEAK_SYMBOLS)
-/* Make an alias called `start' (no leading underscore,
- so it can't conflict with C symbols) for `_start'. */
-asm (".weak start; start = _start");
+#ifndef NO_UNDERSCORES
+/* Make an alias called `start' (no leading underscore, so it can't
+ conflict with C symbols) for `_start'. This is the name vendor crt0.o's
+ tend to use, and thus the name most linkers expect. */
+void _start (void) asm ("start");
+#endif
+asm (".set start, __start");
#endif
#endif
/* ARGSUSED */
static void
-start1(ARG_DUMMIES argc, argp)
+start1 (ARG_DUMMIES argc, argp)
DECL_DUMMIES
int argc;
char *argp;
@@ -94,5 +90,5 @@ start1(ARG_DUMMIES argc, argp)
__libc_init (argc, argv, __environ);
/* Call the user program. */
- exit(main(argc, argv, __environ));
+ exit (main (argc, argv, __environ));
}