Skip to content
Commit 485f5930 authored by Bin Meng's avatar Bin Meng Committed by Leo Yu-Chi Liang
Browse files

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: default avatarBin Meng <bmeng@tinylab.org>
Reviewed-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
parent d7abc0f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment