[PATCH v2 6/9] riscv: Change to use positive offset to access relocation entries

Leo Liang ycliang at andestech.com
Thu Apr 20 09:46:44 CEST 2023


On Thu, Apr 13, 2023 at 02:20:05PM +0800, Bin Meng wrote:
> 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 at tinylab.org>
> ---
> 
> (no changes since v1)
> 
>  arch/riscv/cpu/start.S | 19 +++++++------------
>  1 file changed, 7 insertions(+), 12 deletions(-)

Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>


More information about the U-Boot mailing list