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:
Ed Maste 2016-02-05 20:54:51 +00:00
parent 5652770d8f
commit 23541160bb

View File

@ -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: