Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-08-13 04:11:51 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-08-13 04:11:51 +0400
commitb3a9676ba0da054d953b0f11a441702659ba1bfb (patch)
treebe61589093888ff9ecf7faad6c858e97844f4745 /newlib/libc
parent3317419d1aa620af3d246fd4e3506d046be23173 (diff)
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.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/sys/linux/machine/i386/crt0.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/sys/linux/machine/i386/crt0.c b/newlib/libc/sys/linux/machine/i386/crt0.c
index cc9cb9249..84ea0435b 100644
--- a/newlib/libc/sys/linux/machine/i386/crt0.c
+++ b/newlib/libc/sys/linux/machine/i386/crt0.c
@@ -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));