diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-06-07 17:56:55 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-06-12 15:26:28 +0300 |
commit | 331f291e4cff8f0b7b35edded21132c2fa69fb97 (patch) | |
tree | 5ee7e81534b7ad7ec44d9f21fdca3bcf9cc3ed6a /firmware/fw_payload.elf.ldS | |
parent | 6fec1c7e1118add3aa16707914ada8adca09bf1b (diff) | |
download | opensbi-331f291e4cff8f0b7b35edded21132c2fa69fb97.tar.xz |
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>
Diffstat (limited to 'firmware/fw_payload.elf.ldS')
-rw-r--r-- | firmware/fw_payload.elf.ldS | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/fw_payload.elf.ldS b/firmware/fw_payload.elf.ldS index 44fa4c3..f1a544b 100644 --- a/firmware/fw_payload.elf.ldS +++ b/firmware/fw_payload.elf.ldS @@ -27,4 +27,6 @@ SECTIONS . = ALIGN(8); PROVIDE(_payload_end = .); } + + PROVIDE(_fw_reloc_end = .); } |