diff options
| author | Ada Christine <adachristine18@gmail.com> | 2026-05-26 21:32:27 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2026-05-26 21:32:27 +0000 |
| commit | a10aabfcd52f702057316018cd7847ab2bfe4aa1 (patch) | |
| tree | cc4652d2b602798934e8a48b4939cfb20eda1989 /lib/elf64.c | |
| parent | 90c29fdde317c39384011a6ba97077c138f13ad6 (diff) | |
we're bringing kjarna back and not doing the crazy stuff with trying to have task management during efi. that was a bit extra.kjarna
Diffstat (limited to 'lib/elf64.c')
| -rw-r--r-- | lib/elf64.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
