From a10aabfcd52f702057316018cd7847ab2bfe4aa1 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Tue, 26 May 2026 21:32:27 +0000 Subject: we're bringing kjarna back and not doing the crazy stuff with trying to have task management during efi. that was a bit extra. --- lib/elf64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/elf64.c') diff --git a/lib/elf64.c b/lib/elf64.c index b5afc18..38cfc11 100644 --- a/lib/elf64.c +++ b/lib/elf64.c @@ -79,7 +79,7 @@ bool elf64_validate_fd(int fd, unsigned type, unsigned machine) return elf64_validate(&ehdr, type, machine); } -static bool is_loadable(Elf64_Phdr const *phdr) +static bool segment_is_loadable(Elf64_Phdr const *phdr) { return phdr != nullptr && phdr->p_type == PT_LOAD; } @@ -92,7 +92,7 @@ static size_t aligned_size(Elf64_Phdr const *phdr) static size_t segment_memsz(Elf64_Phdr const *phdr) { - return is_loadable(phdr) ? aligned_size(phdr) : 0; + return segment_is_loadable(phdr) ? aligned_size(phdr) : 0; } size_t elf64_size(Elf64_Ehdr const *ehdr, Elf64_Phdr *phdrs) @@ -168,7 +168,7 @@ uintptr_t elf64_dt_val(Elf64_Dyn *dyntab, unsigned long dt_type) static ssize_t load_segment(int fd, Elf64_Phdr *phdr, size_t buffer_size, char buffer[buffer_size]) { - if (!is_loadable(phdr)) + if (!segment_is_loadable(phdr)) { return 0; } -- cgit v1.3.1-1-g115d