readelf: avoid accidental fallthrough in RISC-V relocations
This would have printed an unknown RISC-V relocation type as a SPARC relocation. CID: 1331398 Obtained from: ELF Tool Chain r3283 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
5652770d8f
commit
23541160bb
@ -1452,6 +1452,7 @@ r_type(unsigned int mach, unsigned int type)
|
||||
case 43: return "R_RISCV_ALIGN";
|
||||
case 44: return "R_RISCV_RVC_BRANCH";
|
||||
case 45: return "R_RISCV_RVC_JUMP";
|
||||
default: return "";
|
||||
}
|
||||
case EM_SPARC:
|
||||
case EM_SPARCV9:
|
||||
|
Loading…
Reference in New Issue
Block a user