]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Optimize loading relocation type
authorBin Meng <bmeng@tinylab.org>
Thu, 13 Apr 2023 06:20:01 +0000 (14:20 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 20 Apr 2023 12:45:08 +0000 (20:45 +0800)
't5' already contains relocation type so don't bother reloading it.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/cpu/start.S

index 3c8344c345bc033883f31f2bad79b37065231070..879bdc18034c1eb7c30500f9f9561ee2310fc0d0 100644 (file)
@@ -323,7 +323,6 @@ fix_rela_dyn:
        add     t4, t4, t6
 
 9:
-       LREG    t5, -(REGBYTES*2)(t1)   /* t5 <-- relocation info:type */
        srli    t0, t5, SYM_INDEX       /* t0 <--- sym table index */
        andi    t5, t5, 0xFF            /* t5 <--- relocation type */
        li      t3, RELOC_TYPE