:: commit fb651eeeb0c6695f310b65bc4b91dd22a3c1af41

mintsuki <mintsuki@protonmail.com> — 2024-06-08 22:19

parents: 614a5b9d4d

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");
         }
tab: 248 wrap: offon