1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-14 16:31:42 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-22 20:12:52 +09:00
parent 56b844f3fa
commit e9708df0dd

View File

@ -26,8 +26,8 @@ void OutputEhdr::relocate(uint8_t *buf) {
hdr->e_shoff = out::shdr->get_offset();
hdr->e_flags = 0;
hdr->e_ehsize = sizeof(ELF64LE::Ehdr);
hdr->e_phentsize = sizeof(ELF64LE::Phdr);
hdr->e_phnum = out::phdr->hdr.size();
// hdr->e_phentsize = sizeof(ELF64LE::Phdr);
// hdr->e_phnum = out::phdr->hdr.size();
hdr->e_shentsize = sizeof(ELF64LE::Shdr);
hdr->e_shnum = out::shdr->hdr.size();
hdr->e_shstrndx = out::shstrtab->index;