diff --git a/mold.h b/mold.h index 13451274..55de956c 100644 --- a/mold.h +++ b/mold.h @@ -406,6 +406,7 @@ public: this->name = ".rela.plt"; shdr.sh_flags = llvm::ELF::SHF_ALLOC; shdr.sh_type = llvm::ELF::SHT_RELA; + shdr.sh_entsize = sizeof(ELF64LE::Rela); shdr.sh_addralign = 8; }