forked from CharlyCst/miralis-artifact-opensbi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opensbi_macos.patch
28 lines (25 loc) · 907 Bytes
/
opensbi_macos.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/Makefile b/Makefile
index de4e73a..80584a8 100644
--- a/Makefile
+++ b/Makefile
@@ -375,7 +375,7 @@ ASFLAGS += $(firmware-asflags-y)
ARFLAGS = rcs
ELFFLAGS += $(USE_LD_FLAG)
-ELFFLAGS += -Wl,--exclude-libs,ALL
+# ELFFLAGS += -Wl,--exclude-libs,ALL
ELFFLAGS += -Wl,--build-id=none
ELFFLAGS += $(platform-ldflags-y)
ELFFLAGS += $(firmware-ldflags-y)
diff --git a/firmware/fw_base.ldS b/firmware/fw_base.ldS
index c15ccdb..5598c8b 100644
--- a/firmware/fw_base.ldS
+++ b/firmware/fw_base.ldS
@@ -54,8 +54,8 @@
* PMP regions must be to be power-of-2. RX/RW will have separate
* regions, so ensure that the split is power-of-2.
*/
- . = ALIGN(1 << LOG2CEIL((SIZEOF(.rodata) + SIZEOF(.text)
- + SIZEOF(.dynsym) + SIZEOF(.rela.dyn))));
+ // . = ALIGN(1 << LOG2CEIL((SIZEOF(.rodata) + SIZEOF(.text)
+ // + SIZEOF(.dynsym) + SIZEOF(.rela.dyn))));
PROVIDE(_fw_rw_start = .);