Changes with stack protector for gcc 10

This commit is contained in:
Adrien Bourmault 2020-06-01 18:04:23 +02:00
parent 82320007cf
commit 81bae882e1
No known key found for this signature in database
GPG Key ID: AFEE5788AEE3F4EC
2 changed files with 31 additions and 18 deletions

View File

@ -45,7 +45,7 @@ LDFLAGS=-melf_x86_64
COPTIM=-O2
CWARNS=-Wall -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -Werror=implicit-function-declaration -Werror=return-type #-Wpadded
CINCLUDES=-Iinclude -Iinclude/drivers -Iinclude/kernel
CFLAGS1=-nostdlib -ffreestanding -mcmodel=large -std=gnu11 -fstack-protector-all -fdump-rtl-expand
CFLAGS1=-nostdlib -ffreestanding -mcmodel=large -std=gnu11 -fstack-protector-strong -fdump-rtl-expand
CFLAGS2= -c -mno-red-zone -mno-mmx -mno-sse -mno-sse2
CFLAGS= $(CFLAGS1) $(CFLAGS2)
CFLAGS_MATHS= $(CFLAGS1) -c -mno-red-zone -mno-mmx

View File

@ -26,26 +26,39 @@
.
├── boot
│   ├── grub
│   │   ├── grub.cfg
│   │   └── multiboot.pdf
│   ├── loader
│   │   ├── cpu
│   │   │   ├── cpu32.inc
│   │   │   └── cpu.inc
│   │   ├── io
│   │   │   └── terminal.inc
│   │   ├── mem
│   │   │   ├── management.inc
│   │   │   └── structures.inc
│   │   ├── multiboot
│   │   │   ├── check.inc
│   │   │   └── header.inc
│   │   └── loader.asm
│   └── folder.desc
│   │   └── grub.cfg
│   └── loader
│   ├── cpu
│   │   ├── cpu32.inc
│   │   └── cpu.inc
│   ├── io
│   │   └── terminal.inc
│   ├── mem
│   │   ├── management.inc
│   │   └── structures.inc
│   ├── multiboot
│   │   ├── check.inc
│   │   └── header.inc
│   └── loader.asm
├── build
│   ├── create_disk.sh
│   ├── install-os-k.sh
│   └── kernel.ld
├── docs
│   ├── boot
│   │   ├── grub
│   │   │   └── grub.desc
│   │   └── loader
│   │   ├── cpu
│   │   ├── io
│   │   └── loader.desc
│   ├── kaleid
│   │   ├── drivers
│   │   ├── kernel
│   │   ├── libbuf
│   │   └── libc
│   ├── COPYING.GFDL
│   └── Documentation
├── include
│   ├── drivers
│   │   └── ata.h
@ -166,4 +179,4 @@
├── ProjectTree
└── README.md
30 directories, 111 files
39 directories, 115 files