arm/build/ldscript: import ld script and build paras from riscv64

- This will fix page translation fault when accessing
static variables.
- Now with this patch, we made uart pl011 works for qemu.

Change-Id: I8eecc18ad05bd950768b49d9ed268c4c2a3baf25
Signed-off-by: Han Pengfei <[email protected]>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4123
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: X512 <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Han Pengfei
2021-07-03 09:11:04 +00:00
committed by Adrien Destugues
parent bd76cde0fa
commit 5a1731bcbc
2 changed files with 179 additions and 55 deletions
+2 -1
View File
@@ -399,7 +399,8 @@ rule KernelArchitectureSetup architecture
case arm :
HAIKU_KERNEL_PIC_LINKFLAGS += -z max-page-size=0x1000 ;
HAIKU_KERNEL_ADDON_LINKFLAGS += -z max-page-size=0x1000 ;
HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ;
HAIKU_KERNEL_PIC_CCFLAGS = -fpic ;
HAIKU_KERNEL_PIC_LINKFLAGS = -shared ;
case arm64 :
HAIKU_KERNEL_PIC_LINKFLAGS += -z max-page-size=0x1000 ;