crt1.c (92938) | crt1.c (93036) |
---|---|
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 | 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 |
65/* 66 * First 5 arguments are specified by the PowerPC SVR4 ABI. 67 * The last argument, ps_strings, is a BSD extension. 68 */ 69void _start(int, char **, char **, const struct Struct_Obj_Entry *, 70 void (*)(void), struct ps_strings *); 71 | |
72char **environ; 73char *__progname = ""; 74struct ps_strings *__ps_strings; 75 | 65char **environ; 66char *__progname = ""; 67struct ps_strings *__ps_strings; 68 |
76/* The entry function. */ | 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 */ |
77void 78_start(argc, argv, envp, obj, cleanup, ps_strings) 79 int argc; 80 char **argv, **envp; 81 const struct Struct_Obj_Entry *obj; /* from shared loader */ | 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 */ |
82 void (*cleanup)(void); /* from shared loader */ | 79 void (*cleanup)(void); /* from shared loader */ |
83 struct ps_strings *ps_strings; /* BSD extension */ 84{ 85 char *namep; 86 87 environ = envp; 88 89 if (argc > 0 && argv[0] != NULL) { 90 char *s; --- 21 unchanged lines hidden (view full) --- 112} 113 114#ifdef GCRT 115__asm__(".text"); 116__asm__("eprol:"); 117__asm__(".previous"); 118#endif 119 | 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 |
120__asm__(".ident\t\"$FreeBSD: head/lib/csu/powerpc/crt1.c 92938 2002-03-22 09:16:59Z obrien $\""); | 117__asm__(".ident\t\"$FreeBSD: head/lib/csu/powerpc/crt1.c 93036 2002-03-23 18:14:04Z obrien $\""); |