From 515ec4734001b998074473c63cf197d2b62382b2 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sun, 22 Mar 2020 20:49:55 -0400 Subject: [PATCH] ArchitectureRules: Make HAIKU_KERNEL_PIC_CCFLAGS empty by default. This makes it entirely up to the per-architecture setup as to what to put into it. No functional change. --- build/jam/ArchitectureRules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index 3208f2e1b9..4b93e08ec9 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -379,7 +379,7 @@ rule KernelArchitectureSetup architecture HAIKU_KERNEL_CCFLAGS = $(HAIKU_CCFLAGS_$(architecture)) $(ccBaseFlags) ; HAIKU_KERNEL_C++FLAGS = $(HAIKU_C++FLAGS_$(architecture)) $(c++BaseFlags) ; - HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ; + HAIKU_KERNEL_PIC_CCFLAGS = ; HAIKU_KERNEL_PIC_LINKFLAGS = ; HAIKU_KERNEL_ADDON_LINKFLAGS = ; @@ -458,7 +458,7 @@ rule KernelArchitectureSetup architecture case x86_64 : # Kernel lives in the top 2GB of the address space, use kernel code # model. - HAIKU_KERNEL_PIC_CCFLAGS += -mcmodel=kernel ; + HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic -mcmodel=kernel ; # Disable the red zone, which cannot be used in kernel code due to # interrupts, and always enable the frame pointer so stack traces