summaryrefslogtreecommitdiff
path: root/lib/elf64.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elf64.c')
-rw-r--r--lib/elf64.c6
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;
}