diff --git a/output_chunks.cc b/output_chunks.cc index c214b266..e187312b 100644 --- a/output_chunks.cc +++ b/output_chunks.cc @@ -120,6 +120,7 @@ std::vector> create_phdr(Context &ctx) { phdr.p_filesz = (chunk->shdr.sh_type == SHT_NOBITS) ? 0 : chunk->shdr.sh_size; phdr.p_vaddr = chunk->shdr.sh_addr; + phdr.p_paddr = chunk->shdr.sh_addr; phdr.p_memsz = chunk->shdr.sh_size; };