diff options
52 files changed, 52 insertions, 52 deletions
diff --git a/libgloss/v850/_exit.c b/libgloss/v850/_exit.c index b45ae96..44d4132 100644 --- a/libgloss/v850/_exit.c +++ b/libgloss/v850/_exit.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/chmod.c b/libgloss/v850/chmod.c index c86e5c9..01ccd97 100644 --- a/libgloss/v850/chmod.c +++ b/libgloss/v850/chmod.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/chown.c b/libgloss/v850/chown.c index 0344d77..c34a9d6 100644 --- a/libgloss/v850/chown.c +++ b/libgloss/v850/chown.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/close.c b/libgloss/v850/close.c index 3c62f68..40301f6 100644 --- a/libgloss/v850/close.c +++ b/libgloss/v850/close.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/creat.c b/libgloss/v850/creat.c index 8d468a6..4989fc0 100644 --- a/libgloss/v850/creat.c +++ b/libgloss/v850/creat.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/execv.c b/libgloss/v850/execv.c index 5286be6..38d74b4 100644 --- a/libgloss/v850/execv.c +++ b/libgloss/v850/execv.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/execve.c b/libgloss/v850/execve.c index b8d97f9..3efb98a 100644 --- a/libgloss/v850/execve.c +++ b/libgloss/v850/execve.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/fork.c b/libgloss/v850/fork.c index 116116c..50bf5fa 100644 --- a/libgloss/v850/fork.c +++ b/libgloss/v850/fork.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/fstat.c b/libgloss/v850/fstat.c index e8783b3..9c1cece 100644 --- a/libgloss/v850/fstat.c +++ b/libgloss/v850/fstat.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/getpid.c b/libgloss/v850/getpid.c index 18fd149..32ac7fb 100644 --- a/libgloss/v850/getpid.c +++ b/libgloss/v850/getpid.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/gettime.c b/libgloss/v850/gettime.c index fc47532..7a99f8a 100644 --- a/libgloss/v850/gettime.c +++ b/libgloss/v850/gettime.c @@ -4,7 +4,7 @@ #include "sys/syscall.h" #include "sys/time.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/isatty.c b/libgloss/v850/isatty.c index 95d2c0e..248ab52 100644 --- a/libgloss/v850/isatty.c +++ b/libgloss/v850/isatty.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/kill.c b/libgloss/v850/kill.c index b8e5395..34e5db7 100644 --- a/libgloss/v850/kill.c +++ b/libgloss/v850/kill.c @@ -4,7 +4,7 @@ #include "sys/syscall.h" #include <reent.h> -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/link.c b/libgloss/v850/link.c index 9776d79..f079d37 100644 --- a/libgloss/v850/link.c +++ b/libgloss/v850/link.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/lseek.c b/libgloss/v850/lseek.c index b5d3ef0..75c5e0e 100644 --- a/libgloss/v850/lseek.c +++ b/libgloss/v850/lseek.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/open.c b/libgloss/v850/open.c index 96616e5..e8f63f4 100644 --- a/libgloss/v850/open.c +++ b/libgloss/v850/open.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/pipe.c b/libgloss/v850/pipe.c index 494a99e..c521979 100644 --- a/libgloss/v850/pipe.c +++ b/libgloss/v850/pipe.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/read.c b/libgloss/v850/read.c index ec064cb..b55d1cb 100644 --- a/libgloss/v850/read.c +++ b/libgloss/v850/read.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/sim.ld b/libgloss/v850/sim.ld index 48da115..bffff62 100644 --- a/libgloss/v850/sim.ld +++ b/libgloss/v850/sim.ld @@ -195,7 +195,7 @@ SECTIONS .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } /* User stack. */ - .stack 0x200000 : + .stack 0x300000 : { __stack = .; *(.stack) diff --git a/libgloss/v850/stat.c b/libgloss/v850/stat.c index dc8351e..b66a669 100644 --- a/libgloss/v850/stat.c +++ b/libgloss/v850/stat.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/time.c b/libgloss/v850/time.c index d0dc93f..04ea03d 100644 --- a/libgloss/v850/time.c +++ b/libgloss/v850/time.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/times.c b/libgloss/v850/times.c index a558267..242dffd 100644 --- a/libgloss/v850/times.c +++ b/libgloss/v850/times.c @@ -4,7 +4,7 @@ #include "sys/syscall.h" #include "sys/times.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/unlink.c b/libgloss/v850/unlink.c index c6261d3..23c60ec 100644 --- a/libgloss/v850/unlink.c +++ b/libgloss/v850/unlink.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/utime.c b/libgloss/v850/utime.c index ea1f789..83ee975 100644 --- a/libgloss/v850/utime.c +++ b/libgloss/v850/utime.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/wait.c b/libgloss/v850/wait.c index d8c96f0..9cab5ce 100644 --- a/libgloss/v850/wait.c +++ b/libgloss/v850/wait.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/libgloss/v850/write.c b/libgloss/v850/write.c index 136ac9e..07bec15 100644 --- a/libgloss/v850/write.c +++ b/libgloss/v850/write.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/_exit.c b/newlib/libc/sys/sysnecv850/_exit.c index b45ae96..44d4132 100644 --- a/newlib/libc/sys/sysnecv850/_exit.c +++ b/newlib/libc/sys/sysnecv850/_exit.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/chmod.c b/newlib/libc/sys/sysnecv850/chmod.c index c86e5c9..01ccd97 100644 --- a/newlib/libc/sys/sysnecv850/chmod.c +++ b/newlib/libc/sys/sysnecv850/chmod.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/chown.c b/newlib/libc/sys/sysnecv850/chown.c index 0344d77..c34a9d6 100644 --- a/newlib/libc/sys/sysnecv850/chown.c +++ b/newlib/libc/sys/sysnecv850/chown.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/close.c b/newlib/libc/sys/sysnecv850/close.c index 3c62f68..40301f6 100644 --- a/newlib/libc/sys/sysnecv850/close.c +++ b/newlib/libc/sys/sysnecv850/close.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/creat.c b/newlib/libc/sys/sysnecv850/creat.c index 8d468a6..4989fc0 100644 --- a/newlib/libc/sys/sysnecv850/creat.c +++ b/newlib/libc/sys/sysnecv850/creat.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/execv.c b/newlib/libc/sys/sysnecv850/execv.c index 5286be6..38d74b4 100644 --- a/newlib/libc/sys/sysnecv850/execv.c +++ b/newlib/libc/sys/sysnecv850/execv.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/execve.c b/newlib/libc/sys/sysnecv850/execve.c index b8d97f9..3efb98a 100644 --- a/newlib/libc/sys/sysnecv850/execve.c +++ b/newlib/libc/sys/sysnecv850/execve.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/fork.c b/newlib/libc/sys/sysnecv850/fork.c index 116116c..50bf5fa 100644 --- a/newlib/libc/sys/sysnecv850/fork.c +++ b/newlib/libc/sys/sysnecv850/fork.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/fstat.c b/newlib/libc/sys/sysnecv850/fstat.c index b7eed0a..f667039 100644 --- a/newlib/libc/sys/sysnecv850/fstat.c +++ b/newlib/libc/sys/sysnecv850/fstat.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/getpid.c b/newlib/libc/sys/sysnecv850/getpid.c index 18fd149..32ac7fb 100644 --- a/newlib/libc/sys/sysnecv850/getpid.c +++ b/newlib/libc/sys/sysnecv850/getpid.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/gettime.c b/newlib/libc/sys/sysnecv850/gettime.c index fc47532..7a99f8a 100644 --- a/newlib/libc/sys/sysnecv850/gettime.c +++ b/newlib/libc/sys/sysnecv850/gettime.c @@ -4,7 +4,7 @@ #include "sys/syscall.h" #include "sys/time.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/isatty.c b/newlib/libc/sys/sysnecv850/isatty.c index 95d2c0e..248ab52 100644 --- a/newlib/libc/sys/sysnecv850/isatty.c +++ b/newlib/libc/sys/sysnecv850/isatty.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/kill.c b/newlib/libc/sys/sysnecv850/kill.c index b8e5395..34e5db7 100644 --- a/newlib/libc/sys/sysnecv850/kill.c +++ b/newlib/libc/sys/sysnecv850/kill.c @@ -4,7 +4,7 @@ #include "sys/syscall.h" #include <reent.h> -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/link.c b/newlib/libc/sys/sysnecv850/link.c index 9776d79..f079d37 100644 --- a/newlib/libc/sys/sysnecv850/link.c +++ b/newlib/libc/sys/sysnecv850/link.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/lseek.c b/newlib/libc/sys/sysnecv850/lseek.c index b5d3ef0..75c5e0e 100644 --- a/newlib/libc/sys/sysnecv850/lseek.c +++ b/newlib/libc/sys/sysnecv850/lseek.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/open.c b/newlib/libc/sys/sysnecv850/open.c index 96616e5..e8f63f4 100644 --- a/newlib/libc/sys/sysnecv850/open.c +++ b/newlib/libc/sys/sysnecv850/open.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/pipe.c b/newlib/libc/sys/sysnecv850/pipe.c index 494a99e..c521979 100644 --- a/newlib/libc/sys/sysnecv850/pipe.c +++ b/newlib/libc/sys/sysnecv850/pipe.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/read.c b/newlib/libc/sys/sysnecv850/read.c index ec064cb..b55d1cb 100644 --- a/newlib/libc/sys/sysnecv850/read.c +++ b/newlib/libc/sys/sysnecv850/read.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/rename.c b/newlib/libc/sys/sysnecv850/rename.c index 9d9f7db..0d6e23c 100644 --- a/newlib/libc/sys/sysnecv850/rename.c +++ b/newlib/libc/sys/sysnecv850/rename.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/stat.c b/newlib/libc/sys/sysnecv850/stat.c index dc8351e..b66a669 100644 --- a/newlib/libc/sys/sysnecv850/stat.c +++ b/newlib/libc/sys/sysnecv850/stat.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/time.c b/newlib/libc/sys/sysnecv850/time.c index d0dc93f..04ea03d 100644 --- a/newlib/libc/sys/sysnecv850/time.c +++ b/newlib/libc/sys/sysnecv850/time.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/times.c b/newlib/libc/sys/sysnecv850/times.c index a558267..242dffd 100644 --- a/newlib/libc/sys/sysnecv850/times.c +++ b/newlib/libc/sys/sysnecv850/times.c @@ -4,7 +4,7 @@ #include "sys/syscall.h" #include "sys/times.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/unlink.c b/newlib/libc/sys/sysnecv850/unlink.c index 34b712f..eb19d5c 100644 --- a/newlib/libc/sys/sysnecv850/unlink.c +++ b/newlib/libc/sys/sysnecv850/unlink.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/utime.c b/newlib/libc/sys/sysnecv850/utime.c index ea1f789..83ee975 100644 --- a/newlib/libc/sys/sysnecv850/utime.c +++ b/newlib/libc/sys/sysnecv850/utime.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/wait.c b/newlib/libc/sys/sysnecv850/wait.c index d8c96f0..9cab5ce 100644 --- a/newlib/libc/sys/sysnecv850/wait.c +++ b/newlib/libc/sys/sysnecv850/wait.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); diff --git a/newlib/libc/sys/sysnecv850/write.c b/newlib/libc/sys/sysnecv850/write.c index 136ac9e..07bec15 100644 --- a/newlib/libc/sys/sysnecv850/write.c +++ b/newlib/libc/sys/sysnecv850/write.c @@ -3,7 +3,7 @@ #include <sys/stat.h> #include "sys/syscall.h" -int errno; +extern int errno; int __trap0 (int function, int p1, int p2, int p3); |