From d0d9f0280879f8c43131256aa5e82012ec84716f Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 10 Dec 2019 17:23:00 +0100 Subject: Clean up flags in Makefile a bit.; -fPIC... -fPIC EVERYWHERE --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 377ba18..0796ac8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -CFLAGS=-mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall -Wextra -I. -ELFFLAGS=-ffreestanding -O2 -nostdlib -lgcc -I. +CFLAGS=-mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall -Wextra -O2 -fPIC -I. +ELFFLAGS=-nostdlib -lgcc ARM_OBJECTS=kernel.o paging.o demo_functionality.o PL0_test.o uart.o loader_stage1.o loader_stage2.o @@ -21,9 +21,6 @@ all : kernel7.img %_embeddable.o : %.img arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm --rename-section .data=.rodata $^ $@ -libkernel.o : libkernel.c - arm-none-eabi-gcc $(CFLAGS) -fPIC -c $^ -o $@ - libkernel_renamed.o : libkernel.o arm-none-eabi-objcopy $(RENAME_FLAGS) $^ $@ -- cgit v1.2.3