[PATCH] firmware: fix section type for firmware dynamic

Matt Waltz matthewwaltzis at gmail.com
Mon Dec 4 21:11:38 PST 2023


This section is only intended to hold data, and should not be executable.

Signed-off-by: Matt Waltz <matthewwaltzis at gmail.com>
---
 firmware/fw_dynamic.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/firmware/fw_dynamic.S b/firmware/fw_dynamic.S
index 2b60196..ddd0fb4 100644
--- a/firmware/fw_dynamic.S
+++ b/firmware/fw_dynamic.S
@@ -129,7 +129,7 @@ fw_options:
 	REG_L	a0, (a0)
 	ret
 
-	.section .entry, "ax", %progbits
+	.section .data, "aw", %progbits
 	.align 3
 _dynamic_next_arg1:
 	RISCV_PTR 0x0
-- 
2.34.1




More information about the opensbi mailing list