1/*- 2 * Copyright 2001 David E. O'Brien. 3 * All rights reserved. 4 * Copyright 1996-1998 John D. Polstra. 5 * All rights reserved. 6 * Copyright (c) 1997 Jason R. Thorpe. 7 * Copyright (c) 1995 Christopher G. Demetriou 8 * All rights reserved. --- 48 unchanged lines hidden (view full) --- 57 58#ifdef GCRT 59extern void _mcleanup(void); 60extern void monstartup(void *, void *); 61extern int eprol; 62extern int etext; 63#endif 64 |
65char **environ; 66char *__progname = ""; 67struct ps_strings *__ps_strings; 68 |
69/* The entry function. 70 * 71 * First 5 arguments are specified by the PowerPC SVR4 ABI. 72 * The last argument, ps_strings, is a BSD extension. 73 */ |
74void 75_start(argc, argv, envp, obj, cleanup, ps_strings) 76 int argc; 77 char **argv, **envp; 78 const struct Struct_Obj_Entry *obj; /* from shared loader */ |
79 void (*cleanup)(void); /* from shared loader */ |
80 struct ps_strings *ps_strings; /* BSD extension */ 81{ 82 char *namep; 83 84 environ = envp; 85 86 if (argc > 0 && argv[0] != NULL) { 87 char *s; --- 21 unchanged lines hidden (view full) --- 109} 110 111#ifdef GCRT 112__asm__(".text"); 113__asm__("eprol:"); 114__asm__(".previous"); 115#endif 116 |
117__asm__(".ident\t\"$FreeBSD: head/lib/csu/powerpc/crt1.c 93036 2002-03-23 18:14:04Z obrien $\""); |