I'm trying to compile a OS project in Microsoft VS code on Monjaro (x86-64) and have been repeatedly getting the following output:
gcc -m32 -nostdlib -nodefaultlibs -lgcc start.o libc/string/memcmp.o libc/string/memset.o libc/string/strcat.o libc/string/strchr.o libc/string/strcmp.o libc/string/strcpy.o libc/string/strlen.o libc/string/strncmp.o libc/string/strstr.o libc/string/strutil.o libc/string/ctos.o kernel/tty.o kernel/io.o kernel.o -T linker.ld -o myos
/usr/bin/ld: warning: myos has a LOAD segment with RWX permissions
/usr/bin/ld: kernel/tty.o: in function `putchar':
tty.c:(.text+0x3db): undefined reference to `__stack_chk_fail_local'
/usr/bin/ld: kernel/tty.o: in function `printf':
tty.c:(.text+0x573): undefined reference to `__stack_chk_fail_local'
/usr/bin/ld: myos: hidden symbol `__stack_chk_fail_local' isn't defined
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:28: myos] Error 1
any sugestions that i can make to my '''Tty.c''' file to not cause LD to thow a fit? thanks in advance!