]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: Change to use positive offset to access relocation entries
authorBin Meng <bmeng@tinylab.org>
Thu, 13 Apr 2023 06:20:05 +0000 (14:20 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 20 Apr 2023 12:45:08 +0000 (20:45 +0800)
commit485f59307957269786384c30e4eee59716727f07
tree205e34f9bd8d7cd0cad5dc64cdbff51b3a218bb8
parentd7abc0f81908821d51bfd882dbd463674789b36c
riscv: Change to use positive offset to access relocation entries

The codes currently skip the very first relocation entry, and have
an inaccurate comment "skip first reserved entry" indicating that
the first entry is reserved, but later it references the elements
in the first relocation entry using a minus offset.

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

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/start.S