firmware: Optimize loading relocation type
authorBin Meng <bmeng@tinylab.org>
Tue, 4 Apr 2023 04:46:00 +0000 (12:46 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 17 Apr 2023 03:25:49 +0000 (08:55 +0530)
't5' already contains relocation type so don't bother reloading it.

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

index 5a3e89485a814d9258e23b2ea1197334c47ed904..2d6be70e9d47eb5eb620f708f330c1686e6b87b7 100644 (file)
@@ -95,7 +95,6 @@ _try_lottery:
        lla     t4, __dyn_sym_start
 
 4:
-       REG_L   t5, -(REGBYTES*2)(t0)   /* t5 <-- relocation info:type */
        srli    t6, t5, SYM_INDEX       /* t6 <--- sym table index */
        andi    t5, t5, 0xFF            /* t5 <--- relocation type */
        li      t3, RELOC_TYPE