mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
firmware: Bring back FW_TEXT_START as an optional parameter
Bring back FW_TEXT_START as an optional parameter to allow users
explicitly specify compile time address for loading debug symbols.
When not specified, the FW_TEXT_START is assumed to be 0.
Fixes: d4d2582eef
("firmware: remove FW_TEXT_START")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Tested-by: Clément Léger <cleger@rivosinc.com>
This commit is contained in:
@@ -15,7 +15,7 @@ SECTIONS
|
||||
#include "fw_base.ldS"
|
||||
|
||||
#ifdef FW_PAYLOAD_OFFSET
|
||||
. = FW_PAYLOAD_OFFSET;
|
||||
. = FW_TEXT_START + FW_PAYLOAD_OFFSET;
|
||||
#else
|
||||
. = ALIGN(FW_PAYLOAD_ALIGN);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user