riscv: Fix breakage caused by linker relaxation