mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
Kernel: Build the kernel as a position-independent executable
This is a prerequisite for KASLR, which we should eventually be doing.
This commit is contained in:
parent
53bda09d15
commit
0614c3dd3c
2 changed files with 6 additions and 1 deletions
|
@ -118,7 +118,7 @@ KERNEL = 1
|
|||
|
||||
PROGRAM = kernel
|
||||
|
||||
SUBPROJECT_CXXFLAGS += -ffreestanding -mno-80387 -mno-mmx -mno-sse -mno-sse2 -fno-asynchronous-unwind-tables
|
||||
SUBPROJECT_CXXFLAGS += -pie -fPIE -ffreestanding -mno-80387 -mno-mmx -mno-sse -mno-sse2 -fno-asynchronous-unwind-tables
|
||||
SUBPROJECT_CXXFLAGS += -nostdlib -nostdinc -nostdinc++
|
||||
SUBPROJECT_CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/9.2.0/
|
||||
SUBPROJECT_CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/9.2.0/i686-pc-serenity/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue