riscv: update fix_rela_dyn
authorMarcus Comstedt <marcus@mc.pp.se>
Sun, 11 Aug 2019 12:45:29 +0000 (14:45 +0200)
committerAndes <uboot@andestech.com>
Tue, 3 Sep 2019 01:30:41 +0000 (09:30 +0800)
commitf6cb427fdc1d2c4236f0a9bc97068c30ca228282
tree09eb9cfd8d9c586a6b8143a1f7816676168413e5
parent71bdfcb21d755435a8e99f0ff66b853a3759f4b7
riscv: update fix_rela_dyn

The addend is now added for RELOC_TYPE relocs.  Also, changed the loop
structure so that all the R_RISCV_RELATIVE relocs are not required to
be at the beginning of the list.

Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
Cc: Rick Chen <rick@andestech.com>
arch/riscv/cpu/start.S