firmware: Change to use positive offset to access relocation entries
authorBin Meng <bmeng@tinylab.org>
Tue, 4 Apr 2023 04:46:01 +0000 (12:46 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 17 Apr 2023 03:25:55 +0000 (08:55 +0530)
commite41dbb507c422c52cf93228ca7157394d49ca9fe
tree724808c80563dac3423557f3fda0e1992c63e968
parentf692289ed42882567491c35700a1feb64ba540b5
firmware: Change to use positive offset to access relocation entries

The codes currently skip the very first relocation entry, but later
reference the elements in the relocation entry using minus offsets.

Change to use positive offsets so that there is no need to skip the
first relocation entry.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Xiang W <wxjstz@126.com>
firmware/fw_base.S