mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
firmware: Relocate when load address is not equal to link address
This patch extends fw_base to relocate to link address whenever firmware load address is not equal to link address. The relocation will not work when load start to load end overlap link start to link end. Signed-off-by: Anup Patel <anup.patel@wdc.com> Tested-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
This commit is contained in:
@@ -13,4 +13,6 @@ ENTRY(_start)
|
||||
SECTIONS
|
||||
{
|
||||
#include "fw_base.ldS"
|
||||
|
||||
PROVIDE(_fw_reloc_end = .);
|
||||
}
|
||||
|
Reference in New Issue
Block a user