2002-08-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/machine/i386/crt0.c (__bss_start,_end): Declare as extern chars and use the address operator to properly use values set in linker script.
This commit is contained in:
parent
3317419d1a
commit
b3a9676ba0
|
@ -1,3 +1,9 @@
|
|||
2002-08-12 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
|
||||
Declare as extern chars and use the address operator to
|
||||
properly use values set in linker script.
|
||||
|
||||
2002-08-09 Jason Tishler <jason@tishler.net>
|
||||
|
||||
* libc/stdlib/mallocr.c: Include <limits.h>.
|
||||
|
|
|
@ -16,8 +16,8 @@ extern char **environ;
|
|||
|
||||
extern int main(int argc,char **argv,char **envp);
|
||||
|
||||
extern void *_end;
|
||||
extern void *__bss_start;
|
||||
extern char _end;
|
||||
extern char __bss_start;
|
||||
|
||||
void _start(int args)
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ void _start(int args)
|
|||
environ = argv+argc+1;
|
||||
|
||||
/* clear bss */
|
||||
memset(__bss_start,0,((char *)_end - (char *)__bss_start));
|
||||
memset(&__bss_start,0,(&_end - &__bss_start));
|
||||
|
||||
tzset(); /* initialize timezone info */
|
||||
exit(main(argc,argv,environ));
|
||||
|
|
Loading…
Reference in New Issue