[PATCH] firmware: fix section type for firmware dynamic

Xiang W wxjstz at 126.com
Tue Dec 5 00:58:13 PST 2023


在 2023-12-04星期一的 22:11 -0700,Matt Waltz写道:
> This section is only intended to hold data, and should not be executable.
> 
> Signed-off-by: Matt Waltz <matthewwaltzis at gmail.com>

firmware/fw_jump.S
firmware/payloads/test_head.S
The data section attributes in the above files also need to be modified

Regards,
Xiang W

> ---
>  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