shithub: scc

Download patch

ref: 72154ee31c060546f417db8094554ce8940df181
parent: bd23b0292ee5add6989dec35cc75b7c7efcf394d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Oct 19 11:26:23 EDT 2018

[libc] Add needed flags for linux

--- a/lib/c/target/amd64-sysv-linux/Makefile
+++ b/lib/c/target/amd64-sysv-linux/Makefile
@@ -7,7 +7,7 @@
 ARCH       = amd64
 ABI        = sysv
 SYSERRTBL  = ../posix/linux.e
-MORECFLAGS = -std=c99 -g -static -nostdinc
+MORECFLAGS = -std=c99 -g -static -nostdinc -ffreestanding -fno-stack-protector
 SYSOBJ     = raise.o signal.o
 
 include syscall.mk
--- a/lib/c/target/amd64-sysv-linux/syscall.mk
+++ b/lib/c/target/amd64-sysv-linux/syscall.mk
@@ -1,1 +1,1 @@
-SYSCALL = _Exit.o _read.o _write.o _open.o _close.o _brk.o _getpid.o _kill.o _sigaction.o _lseek.o 
+SYSCALL = _read.o _write.o _open.o _close.o _lseek.o _brk.o _sigaction.o _getpid.o _Exit.o _kill.o