arm64: Enforce PIC build of kernel
Signed-off-by: Jaroslaw Pelczar <[email protected]> Change-Id: I4d4acf91865b182d9fd5f500978705854e0638e5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1855 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
0ef0921d99
commit
78fea2759f
@@ -429,6 +429,9 @@ rule KernelArchitectureSetup architecture
|
|||||||
-Wl,-z -Wl,max-page-size=0x1000
|
-Wl,-z -Wl,max-page-size=0x1000
|
||||||
-Wl,-z -Wl,common-page-size=0x1000 ;
|
-Wl,-z -Wl,common-page-size=0x1000 ;
|
||||||
|
|
||||||
|
HAIKU_KERNEL_PIC_CCFLAGS = -fPIC ;
|
||||||
|
HAIKU_KERNEL_PIC_LINKFLAGS = -shared -fPIC ;
|
||||||
|
|
||||||
case ppc :
|
case ppc :
|
||||||
# Build a position independent PPC kernel. We need to be able to
|
# Build a position independent PPC kernel. We need to be able to
|
||||||
# relocate the kernel, since the virtual address space layout at
|
# relocate the kernel, since the virtual address space layout at
|
||||||
|
|||||||
Reference in New Issue
Block a user