diff options
author | Matt Waltz <matthewwaltzis@gmail.com> | 2023-12-05 08:13:44 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-12-09 14:26:58 +0530 |
commit | 06968103dcd99c2cf2dad97549ef3880ea00ccd2 (patch) | |
tree | 0cc3f483bef144895cfb45d0be7b28725623dc75 /firmware | |
parent | 11a0ba5d4bce74b2573091c5533717c2871191f1 (diff) | |
download | opensbi-06968103dcd99c2cf2dad97549ef3880ea00ccd2.zip opensbi-06968103dcd99c2cf2dad97549ef3880ea00ccd2.tar.gz opensbi-06968103dcd99c2cf2dad97549ef3880ea00ccd2.tar.bz2 |
firmware: fix section types
These sections are only intended to hold data, and should not be executable.
Signed-off-by: Matt Waltz <matthewwaltzis@gmail.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/fw_dynamic.S | 2 | ||||
-rw-r--r-- | firmware/fw_jump.S | 2 | ||||
-rw-r--r-- | firmware/payloads/test_head.S | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/firmware/fw_dynamic.S b/firmware/fw_dynamic.S index 2b60196..7ff1c6a 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 .align 3 _dynamic_next_arg1: RISCV_PTR 0x0 diff --git a/firmware/fw_jump.S b/firmware/fw_jump.S index 5b24f8b..ac74dc6 100644 --- a/firmware/fw_jump.S +++ b/firmware/fw_jump.S @@ -90,7 +90,7 @@ fw_options: #error "Must define FW_JUMP_ADDR" #endif - .section .entry, "ax", %progbits + .section .rodata .align 3 _jump_addr: RISCV_PTR FW_JUMP_ADDR diff --git a/firmware/payloads/test_head.S b/firmware/payloads/test_head.S index 4852f71..7a2ac12 100644 --- a/firmware/payloads/test_head.S +++ b/firmware/payloads/test_head.S @@ -78,7 +78,7 @@ _start_hang: wfi j _start_hang - .section .entry, "ax", %progbits + .section .data .align 3 _hart_lottery: RISCV_PTR 0 |