diff -Naur linux-0.01-rm-2.1/fs/Makefile linux-0.01-rm-2.2/fs/Makefile --- linux-0.01-rm-2.1/fs/Makefile 2007-11-30 22:43:52.000000000 +0100 +++ linux-0.01-rm-2.2/fs/Makefile 2007-12-23 20:02:14.000000000 +0100 @@ -3,7 +3,7 @@ CC =gcc LD =ld CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \ - -nostdinc -I../include + -fno-stack-protector -nostdinc -I../include CPP =gcc -E -nostdinc -I../include .c.s: diff -Naur linux-0.01-rm-2.1/include/string.h linux-0.01-rm-2.2/include/string.h --- linux-0.01-rm-2.1/include/string.h 2007-12-23 19:41:34.000000000 +0100 +++ linux-0.01-rm-2.2/include/string.h 2007-12-23 20:21:57.000000000 +0100 @@ -137,7 +137,7 @@ return __res; } -extern inline char * strchr(const char * s,char c) +extern inline char * strchr(const char * s,int c) { int d0; register char * __res; @@ -157,7 +157,7 @@ return __res; } -extern inline char * strrchr(const char * s,char c) +extern inline char * strrchr(const char * s,int c) { int d0, d1; register char * __res; @@ -420,7 +420,7 @@ return __res; } -extern inline void * memset(void * s,char c,int count) +extern inline void * memset(void * s,int c,int count) { int d0, d1; __asm__ __volatile__("cld\n\t" diff -Naur linux-0.01-rm-2.1/include/unistd.h linux-0.01-rm-2.2/include/unistd.h --- linux-0.01-rm-2.1/include/unistd.h 2007-11-30 22:43:52.000000000 +0100 +++ linux-0.01-rm-2.2/include/unistd.h 2007-12-23 20:15:12.000000000 +0100 @@ -198,10 +198,10 @@ int execl(const char * pathname, char * arg0, ...); int execlp(const char * file, char * arg0, ...); int execle(const char * pathname, char * arg0, ...); -volatile void exit(int status); -volatile void _exit(int status); +void exit(int status); +void _exit(int status); int fcntl(int fildes, int cmd, ...); -int fork(void); +//int fork(void); int getpid(void); int getuid(void); int geteuid(void); @@ -215,7 +215,7 @@ int mount(const char * specialfile, const char * dir, int rwflag); int nice(int val); int open(const char * filename, int flag, ...); -int pause(void); +//int pause(void); int pipe(int * fildes); int read(int fildes, char * buf, off_t count); int setpgrp(void); @@ -226,7 +226,7 @@ int stat(const char * filename, struct stat * stat_buf); int fstat(int fildes, struct stat * stat_buf); int stime(time_t * tptr); -int sync(void); +//int sync(void); time_t time(time_t * tloc); time_t times(struct tms * tbuf); int ulimit(int cmd, long limit); diff -Naur linux-0.01-rm-2.1/kernel/Makefile linux-0.01-rm-2.2/kernel/Makefile --- linux-0.01-rm-2.1/kernel/Makefile 2007-11-30 22:43:52.000000000 +0100 +++ linux-0.01-rm-2.2/kernel/Makefile 2007-12-23 20:01:35.000000000 +0100 @@ -12,7 +12,7 @@ LDFLAGS =-s -x CC =gcc CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \ - -finline-functions -nostdinc -I../include + -finline-functions -fno-stack-protector -nostdinc -I../include CPP =gcc -E -nostdinc -I../include .c.s: diff -Naur linux-0.01-rm-2.1/lib/_exit.c linux-0.01-rm-2.2/lib/_exit.c --- linux-0.01-rm-2.1/lib/_exit.c 2007-11-30 22:43:52.000000000 +0100 +++ linux-0.01-rm-2.2/lib/_exit.c 2007-12-23 20:24:05.000000000 +0100 @@ -1,7 +1,7 @@ #define __LIBRARY__ #include -volatile void _exit(int exit_code) +void _exit(int exit_code) { __asm__("int $0x80"::"a" (__NR_exit),"b" (exit_code)); } diff -Naur linux-0.01-rm-2.1/lib/Makefile linux-0.01-rm-2.2/lib/Makefile --- linux-0.01-rm-2.1/lib/Makefile 2007-11-30 22:43:52.000000000 +0100 +++ linux-0.01-rm-2.2/lib/Makefile 2007-12-23 20:01:58.000000000 +0100 @@ -12,7 +12,7 @@ LDFLAGS =-s -x CC =gcc CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \ - -finline-functions -nostdinc -I../include + -finline-functions -fno-stack-protector -nostdinc -I../include CPP =gcc -E -nostdinc -I../include .c.s: diff -Naur linux-0.01-rm-2.1/Makefile linux-0.01-rm-2.2/Makefile --- linux-0.01-rm-2.1/Makefile 2007-12-23 19:37:43.000000000 +0100 +++ linux-0.01-rm-2.2/Makefile 2007-12-23 19:59:42.000000000 +0100 @@ -12,7 +12,7 @@ LD =ld LDFLAGS =-s -x -M -Ttext 0 -e startup_32 CC =gcc -CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fwritable-strings +CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fno-stack-protector CPP =gcc -E -nostdinc -Iinclude ARCHIVES=kernel/kernel.o mm/mm.o fs/fs.o diff -Naur linux-0.01-rm-2.1/mm/Makefile linux-0.01-rm-2.2/mm/Makefile --- linux-0.01-rm-2.1/mm/Makefile 2007-11-30 22:43:52.000000000 +0100 +++ linux-0.01-rm-2.2/mm/Makefile 2007-12-23 20:02:27.000000000 +0100 @@ -1,6 +1,6 @@ CC =gcc CFLAGS =-O -Wall -fstrength-reduce -fomit-frame-pointer \ - -finline-functions -nostdinc -I../include + -fno-stack-protector -finline-functions -nostdinc -I../include AS =as AR =ar LD =ld diff -Naur linux-0.01-rm-2.1/tools/build.c linux-0.01-rm-2.2/tools/build.c --- linux-0.01-rm-2.1/tools/build.c 2007-12-23 19:38:00.000000000 +0100 +++ linux-0.01-rm-2.2/tools/build.c 2007-12-23 20:24:53.000000000 +0100 @@ -3,6 +3,7 @@ #include /* unistd.h needs this */ #include /* contains read/write */ #include +#include #define MINIX_HEADER 32 #define GCC_HEADER 1024