:: commit 89bc8aad5e4572a8f65b3517bca909e4f0c9f507

mintsuki <mintsuki@protonmail.com> — 2024-06-03 00:28

parents: 4c4d79b7fe

lib/elf: Optimise is_relocatable() a bit

diff --git a/common/lib/elf.c b/common/lib/elf.c
index dcce2a50..8b26fcde 100644
--- a/common/lib/elf.c
+++ b/common/lib/elf.c
@@ -183,10 +183,10 @@ static bool elf64_is_relocatable(uint8_t *elf, struct elf64_hdr *hdr) {
                         return true;
                     }
                     break;
-                case DT_RELA:
-                    return true;
             }
         }
+
+        break;
     }
 
     return false;
tab: 248 wrap: offon