In a few cases, the symbol lookup is missing before attempting to
perform the relocation. While the relocation types affected are
currently unused, this results in an uninitialized variable warning,
that is escalated to an error when building with clang.
--- elf_machdep.o --- /usr/src/head/sys/riscv/riscv/elf_machdep.c:440:25: error: variable 'val' is uninitialized when used here [-Werror,-Wuninitialized] imm20 = calc_hi20_imm(val); ^~~ /usr/src/head/sys/riscv/riscv/elf_machdep.c:271:14: note: initialize the variable 'val' to silence this warning Elf_Addr val, addr; ^ = 0 /usr/src/head/sys/riscv/riscv/elf_machdep.c:391:9: error: variable 'addr' is uninitialized when used here [-Werror,-Wuninitialized] val = addr - (Elf_Addr)where; ^~~~ /usr/src/head/sys/riscv/riscv/elf_machdep.c:271:20: note: initialize the variable 'addr' to silence this warning Elf_Addr val, addr; ^ = 0