SCCS-vsn: lib/libc/gmon/gmon.c 1.5
-static char *sccsid = "@(#)gmon.c 1.4 (Berkeley) %G%";
+static char *sccsid = "@(#)gmon.c 1.5 (Berkeley) %G%";
+ /*
+ * etext is added by the loader, and is the end of the text space.
+ * eprol is a local symbol, and labels almost the beginning of text space.
+ * its name is changed so it doesn't look like a function.
+ */
extern unsigned char etext;
extern unsigned char etext;
-asm( "#define _eprol eprol" );
extern unsigned char eprol;
extern unsigned char eprol;
+asm( "#define _eprol _$eprol" );
asm( "#define _start start" );
start()
asm( "#define _start start" );
start()
if ( targv >= (char **) ( *argv ) )
--targv;
environ = targv;
if ( targv >= (char **) ( *argv ) )
--targv;
environ = targv;
_mstartup( &eprol , &etext );
exit( main( kfp -> kargc , argv , environ ) );
}
_mstartup( &eprol , &etext );
exit( main( kfp -> kargc , argv , environ ) );
}