lib/elf: Do not check for DT_RELAENT size for DT_PLTREL entries
diff --git a/common/lib/elf.c b/common/lib/elf.c
index eb24f51e..4bf0f124 100644
--- a/common/lib/elf.c
+++ b/common/lib/elf.c
@@ -375,10 +375,6 @@ end_of_pt_segment:
}
if (dt_jmprel != 0) {
- if (rela_ent < sizeof(struct elf64_rela)) {
- panic(true, "elf: rela_ent < sizeof(struct elf64_rela)");
- }
-
if (dt_pltrel != DT_RELA) {
panic(true, "elf: dt_pltrel != DT_RELA");
}
