Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/lld/ELF/
H A DLinkerScript.cpp1325 SmallVector<StringRef, 0> &phdrs) { in maybePropagatePhdrs() argument
1326 if (sec.phdrs.empty()) { in maybePropagatePhdrs()
1330 sec.phdrs = phdrs; in maybePropagatePhdrs()
1332 phdrs = sec.phdrs; in maybePropagatePhdrs()
1470 SmallVector<std::unique_ptr<PhdrEntry>, 0> &phdrs) { in allocateHeaders() argument
1476 auto it = llvm::find_if(phdrs, [](auto &e) { return e->p_type == PT_LOAD; }); in allocateHeaders()
1477 if (it == phdrs.end()) in allocateHeaders()
1508 llvm::erase_if(phdrs, [](auto &e) { return e->p_type == PT_PHDR; }); in allocateHeaders()
1787 for (StringRef s : cmd->phdrs) { in getPhdrIndices()
H A DWriter.cpp104 removeEmptyPTLoad(Ctx &ctx, SmallVector<std::unique_ptr<PhdrEntry>, 0> &phdrs) { in removeEmptyPTLoad() argument
105 auto it = std::stable_partition(phdrs.begin(), phdrs.end(), [&](auto &p) { in removeEmptyPTLoad()
117 for (auto it2 = it; it2 != phdrs.end(); ++it2) in removeEmptyPTLoad()
122 phdrs.erase(it, phdrs.end()); in removeEmptyPTLoad()
333 ctx.script->allocateHeaders(ctx.mainPart->phdrs); in run()
339 removeEmptyPTLoad(ctx, part.phdrs); in run()
869 for (auto &p : part.phdrs) { in setReservedSymbolSections()
2042 part.phdrs = ctx.script->hasPhdrsCommands() ? ctx.script->createPhdrs() in finalizeSections()
2059 sizeof(Elf_Phdr) * ctx.mainPart->phdrs.size(); in finalizeSections()
2065 for (auto &p : ctx.mainPart->phdrs) in finalizeSections()
[all …]
H A DOutputSections.h94 SmallVector<StringRef, 0> phdrs; variable
H A DScriptParser.cpp1001 osd->osec.phdrs = readOutputSectionPhdrs(); in readOverlaySectionDescription()
1083 osec->phdrs = readOutputSectionPhdrs(); in readOutputSectionDescription()
1686 SmallVector<StringRef, 0> phdrs; in readOutputSectionPhdrs() local
1689 phdrs.push_back((tok.size() == 1) ? readName() : tok.substr(1)); in readOutputSectionPhdrs()
1691 return phdrs; in readOutputSectionPhdrs()
H A DLinkerScript.h383 void allocateHeaders(SmallVector<std::unique_ptr<PhdrEntry>, 0> &phdrs);
H A DInputFiles.cpp1457 auto phdrs = CHECK2(obj.program_headers(), this); in parseGnuAndFeatures() local
1458 for (auto phdr : phdrs) { in parseGnuAndFeatures()
H A DSyntheticSections.h1507 SmallVector<std::unique_ptr<PhdrEntry>, 0> phdrs; member
H A DSyntheticSections.cpp4477 eHdr->e_phnum = part.phdrs.size(); in writeEhdr()
4489 for (std::unique_ptr<PhdrEntry> &p : part.phdrs) { in writePhdrs()
4526 return sizeof(typename ELFT::Phdr) * getPartition(ctx).phdrs.size(); in getSize()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp1377 char *phdrs = base + ehdr->e_phoff; in ForEachMappedRegion() local
1378 char *phdrs_end = phdrs + ehdr->e_phnum * ehdr->e_phentsize; in ForEachMappedRegion()
1384 for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) { in ForEachMappedRegion()
1393 for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) { in ForEachMappedRegion()