diff --git a/source/tools/lone-embed.c b/source/tools/lone-embed.c index a75644b..2e013e7 100644 --- a/source/tools/lone-embed.c +++ b/source/tools/lone-embed.c @@ -66,7 +66,7 @@ hdr(struct elf *elf) static struct lone_elf_segment * segs(struct elf *elf) { - return (struct lone_elf_segment *) elf->header.pointer; + return (struct lone_elf_segment *) elf->segments.memory.pointer; } static size_t pht_size_for(struct elf *elf, size_t entry_count)