:: commit 70a0460a6e5da8f9ae553494a260ae8159b49f35

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

parents: 8d5f6d1504

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