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 COPTIM=-O2
CWARNS=-Wall -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -Werror=implicit-function-declaration -Werror=return-type #-Wpadded CWARNS=-Wall -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -Werror=implicit-function-declaration -Werror=return-type #-Wpadded
CINCLUDES=-Iinclude -Iinclude/drivers -Iinclude/kernel 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 CFLAGS2= -c -mno-red-zone -mno-mmx -mno-sse -mno-sse2
CFLAGS= $(CFLAGS1) $(CFLAGS2) CFLAGS= $(CFLAGS1) $(CFLAGS2)
CFLAGS_MATHS= $(CFLAGS1) -c -mno-red-zone -mno-mmx CFLAGS_MATHS= $(CFLAGS1) -c -mno-red-zone -mno-mmx

View File

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