Home
last modified time | relevance | path

Searched refs:NewEhdr (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp4428 ELFEhdrTy NewEhdr = Obj.getHeader(); in patchELFSectionHeaderTable() local
4432 NewEhdr.e_entry = RtLibrary->getRuntimeStartAddress(); in patchELFSectionHeaderTable()
4434 NewEhdr.e_entry = getNewFunctionAddress(NewEhdr.e_entry); in patchELFSectionHeaderTable()
4435 assert((NewEhdr.e_entry || !Obj.getHeader().e_entry) && in patchELFSectionHeaderTable()
4438 NewEhdr.e_phoff = PHDRTableOffset; in patchELFSectionHeaderTable()
4439 NewEhdr.e_phnum = Phnum; in patchELFSectionHeaderTable()
4440 NewEhdr.e_shoff = SHTOffset; in patchELFSectionHeaderTable()
4441 NewEhdr.e_shnum = OutputSections.size(); in patchELFSectionHeaderTable()
4442 NewEhdr.e_shstrndx = NewSectionIndex[NewEhdr.e_shstrndx]; in patchELFSectionHeaderTable()
4443 OS.pwrite(reinterpret_cast<const char *>(&NewEhdr), sizeof(NewEhdr), 0); in patchELFSectionHeaderTable()