From 22e5c79c5c0c92eac5aa8c7562ab906d7225673c Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 28 Jun 2018 01:32:11 +0200 Subject: [PATCH] fix compilation with gcc 8 --- Makefile | 2 +- userland/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6be2cb2..1062d37 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ CC=gcc LD=ld CFLAGS = -Wall -nostdinc -ffreestanding -DKERNEL_SOS -m32 \ - -fno-asynchronous-unwind-tables + -fno-asynchronous-unwind-tables -fno-stack-protector LIBGCC := $(shell $(CC) -print-libgcc-file-name -m32) # To benefit from FP/64bits artihm. LDFLAGS = --warn-common -nostdlib -m elf_i386 OBJECTS = bootstrap/multiboot.o \ diff --git a/userland/Makefile b/userland/Makefile index b560a39..3de4d8a 100644 --- a/userland/Makefile +++ b/userland/Makefile @@ -18,7 +18,7 @@ CC=gcc AR=ar OBJCOPY=objcopy -CFLAGS = -Wall -nostdinc -ffreestanding -I. -I.. -m32 -fno-asynchronous-unwind-tables +CFLAGS = -Wall -nostdinc -ffreestanding -I. -I.. -m32 -fno-asynchronous-unwind-tables -fno-stack-protector LIBGCC := $(shell $(CC) -print-libgcc-file-name -m32) # To benefit from FP/64bits artihm. LDFLAGS = -Wl,--warn-common -nostdlib -Wl,-Tldscript.lds -m32 -fno-asynchronous-unwind-tables