From 7ae5fd56ba14071dc2ea51b3e205259932fe0a61 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 3 Mar 2017 12:35:25 -0800 Subject: paxldso: constify elf structs --- paxldso.c | 4 ++-- 1 file 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: -- cgit v1.2.3