aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paxldso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/paxldso.c b/paxldso.c
index ce64e6c..0cb7b01 100644
--- a/paxldso.c
+++ b/paxldso.c
@@ -68,7 +68,7 @@ static bool is_compatible(elfobj *elf, libentry_t *libent)
*/
if (elf->elf_class == ELFCLASS32) {
- Elf32_Ehdr *ehdr = EHDR32(elf->ehdr);
+ const Elf32_Ehdr *ehdr = EHDR32(elf->ehdr);
switch (EGET(ehdr->e_machine)) {
case EM_AARCH64:
@@ -101,7 +101,7 @@ static bool is_compatible(elfobj *elf, libentry_t *libent)
break;
}
} else {
- Elf64_Ehdr *ehdr = EHDR64(elf->ehdr);
+ const Elf64_Ehdr *ehdr = EHDR64(elf->ehdr);
switch (EGET(ehdr->e_machine)) {
case EM_AARCH64: