Update
This commit is contained in:
parent
3f0938e4c9
commit
6ada14a8c4
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
# Nuke built-in rules and variables.
|
||||||
|
override MAKEFLAGS += -rR
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: barebones.iso
|
all: barebones.iso
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Nuke built-in rules and variables.
|
||||||
|
override MAKEFLAGS += -rR
|
||||||
|
|
||||||
# This is the name that our final kernel executable will have.
|
# This is the name that our final kernel executable will have.
|
||||||
# Change as needed.
|
# Change as needed.
|
||||||
override KERNEL := kernel.elf
|
override KERNEL := kernel.elf
|
||||||
|
@ -64,7 +67,7 @@ override LDFLAGS += \
|
||||||
-z max-page-size=0x1000 \
|
-z max-page-size=0x1000 \
|
||||||
-T linker.ld
|
-T linker.ld
|
||||||
|
|
||||||
# Check if the linker supports -no-pie and enable it if it does
|
# Check if the linker supports -no-pie and enable it if it does.
|
||||||
ifeq ($(shell $(LD) --help 2>&1 | grep 'no-pie' >/dev/null 2>&1; echo $$?),0)
|
ifeq ($(shell $(LD) --help 2>&1 | grep 'no-pie' >/dev/null 2>&1; echo $$?),0)
|
||||||
override LDFLAGS += -no-pie
|
override LDFLAGS += -no-pie
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue