arm64: Enforce PIC build of kernel

Signed-off-by: Jaroslaw Pelczar <jarek@jpelczar.com>
Change-Id: I4d4acf91865b182d9fd5f500978705854e0638e5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1855
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Jaroslaw Pelczar 2019-09-03 18:19:09 +02:00 committed by waddlesplash
parent 0ef0921d99
commit 78fea2759f
1 changed files with 3 additions and 0 deletions

View File

@ -429,6 +429,9 @@ rule KernelArchitectureSetup architecture
-Wl,-z -Wl,max-page-size=0x1000
-Wl,-z -Wl,common-page-size=0x1000 ;
HAIKU_KERNEL_PIC_CCFLAGS = -fPIC ;
HAIKU_KERNEL_PIC_LINKFLAGS = -shared -fPIC ;
case ppc :
# Build a position independent PPC kernel. We need to be able to
# relocate the kernel, since the virtual address space layout at