Home
last modified time | relevance | path

Searched refs:InputSectionBase (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-12.1/contrib/llvm/tools/lld/ELF/
H A DMarkLive.cpp46 static typename ELFT::uint getAddend(InputSectionBase &Sec, in getAddend()
53 static typename ELFT::uint getAddend(InputSectionBase &Sec, in getAddend()
64 resolveReloc(InputSectionBase &Sec, RelT &Rel, in resolveReloc()
75 auto *RelSec = dyn_cast_or_null<InputSectionBase>(D->Section); in resolveReloc()
86 for (InputSectionBase *Sec : CNamedSections.lookup(B.getName())) in resolveReloc()
103 for (InputSectionBase *IS : Sec.DependentSections) in forEachSuccessor()
194 auto Enqueue = [&](InputSectionBase *Sec, uint64_t Offset) { in doGcSections()
241 for (InputSectionBase *Sec : InputSections) { in doGcSections()
273 for (InputSectionBase *Sec : InputSections) in markLive()
303 for (InputSectionBase *Sec : InputSections) { in markLive()
[all …]
H A DCallGraphSort.cpp79 DenseMap<const InputSectionBase *, int> run();
83 std::vector<const InputSectionBase *> Sections;
96 typedef std::pair<const InputSectionBase *, const InputSectionBase *>
104 DenseMap<const InputSectionBase *, int> SecToCluster; in CallGraphSort()
106 auto GetOrCreateNode = [&](const InputSectionBase *IS) -> int { in CallGraphSort()
117 const auto *FromSB = cast<InputSectionBase>(C.first.first->Repl); in CallGraphSort()
118 const auto *ToSB = cast<InputSectionBase>(C.first.second->Repl); in CallGraphSort()
219 DenseMap<const InputSectionBase *, int> CallGraphSort::run() { in run()
223 DenseMap<const InputSectionBase *, int> OrderMap; in run()
238 DenseMap<const InputSectionBase *, int> elf::computeCallGraphProfileOrder() { in computeCallGraphProfileOrder()
H A DInputSection.cpp44 std::vector<InputSectionBase *> elf::InputSections;
59 InputSectionBase::InputSectionBase(InputFile *File, uint64_t Flags, in InputSectionBase() function in InputSectionBase
124 InputSectionBase::InputSectionBase(ObjFile<ELFT> &File, in InputSectionBase() function in InputSectionBase
138 size_t InputSectionBase::getSize() const { in getSize()
146 void InputSectionBase::uncompress() const { in uncompress()
208 void InputSectionBase::parseCompressedHeader() { in parseCompressedHeader()
360 : InputSectionBase(F, Flags, Type, in InputSection()
367 : InputSectionBase(F, Header, Name, InputSectionBase::Regular) {} in InputSection()
407 InputSectionBase *Sec = getRelocatedSection(); in copyRelocations()
1094 : InputSectionBase(F, Header, Name, InputSectionBase::EHFrame) {} in EhInputSection()
[all …]
H A DInputSection.h96 class InputSectionBase : public SectionBase {
99 InputSectionBase(ObjFile<ELFT> &File, const typename ELFT::Shdr &Header,
102 InputSectionBase(InputFile *File, uint64_t Flags, uint32_t Type,
238 class MergeInputSection : public InputSectionBase {
281 EhSectionPiece(size_t Off, InputSectionBase *Sec, uint32_t Size, in EhSectionPiece()
291 InputSectionBase *Sec;
297 class EhInputSection : public InputSectionBase {
317 class InputSection : public InputSectionBase {
341 InputSectionBase *getRelocatedSection() const;
362 extern std::vector<InputSectionBase *> InputSections;
[all …]
H A DLinkerScript.cpp297 bool LinkerScript::shouldKeep(InputSectionBase *S) { in shouldKeep()
310 static std::function<bool(InputSectionBase *, InputSectionBase *)>
314 return [](InputSectionBase *A, InputSectionBase *B) { in getComparator()
321 return [](InputSectionBase *A, InputSectionBase *B) { in getComparator()
325 return [](InputSectionBase *A, InputSectionBase *B) { in getComparator()
384 for (InputSectionBase *Sec : InputSections) { in computeInputSections()
497 for (InputSectionBase *S : V) in processSectionCommands()
514 for (InputSectionBase *S : V) in processSectionCommands()
541 static OutputSection *createSection(InputSectionBase *IS, in createSection()
644 auto Add = [&](InputSectionBase *S) { in addOrphanSections()
[all …]
H A DInputFiles.h39 class InputSectionBase; variable
82 ArrayRef<InputSectionBase *> getSections() const { in getSections()
111 std::string getSrcMsg(const Symbol &Sym, InputSectionBase &Sec,
130 std::vector<InputSectionBase *> Sections;
199 llvm::Optional<llvm::DILineInfo> getDILineInfo(InputSectionBase *, uint64_t);
232 InputSectionBase *getRelocTarget(const Elf_Shdr &Sec);
233 InputSectionBase *createInputSection(const Elf_Shdr &Sec);
H A DRelocations.cpp82 static std::string getLocation(InputSectionBase &S, const Symbol &Sym, in getLocation()
180 handleTlsRelocation(RelType Type, Symbol &Sym, InputSectionBase &C, in handleTlsRelocation()
595 InputSectionBase &Sec, RelExpr Expr, in computeMipsAddend()
630 InputSectionBase &Sec, RelExpr Expr, in computeAddend()
652 static bool maybeReportUndefined(Symbol &Sym, InputSectionBase &Sec, in maybeReportUndefined()
713 explicit OffsetGetter(InputSectionBase &Sec) { in OffsetGetter()
1086 static void scanRelocs(InputSectionBase &Sec, ArrayRef<RelTy> Rels) { in scanRelocs()
1517 template void elf::scanRelocations<ELF32LE>(InputSectionBase &);
1518 template void elf::scanRelocations<ELF32BE>(InputSectionBase &);
1519 template void elf::scanRelocations<ELF64LE>(InputSectionBase &);
[all …]
H A DCallGraphSort.h17 class InputSectionBase; variable
19 llvm::DenseMap<const InputSectionBase *, int> computeCallGraphProfileOrder();
H A DEhFrame.h17 class InputSectionBase; variable
20 size_t readEhRecordSize(InputSectionBase *S, size_t Off);
H A DSyntheticSections.h42 InputSectionBase::Synthetic) {
56 return D->kind() == InputSectionBase::Synthetic; in classof()
74 template <class ELFT> void addSection(InputSectionBase *S);
406 DynamicReloc(RelType Type, const InputSectionBase *InputSec, in DynamicReloc()
413 DynamicReloc(RelType Type, const InputSectionBase *InputSec, in DynamicReloc()
421 const InputSectionBase *getInputSec() const { return InputSec; } in getInputSec()
432 const InputSectionBase *InputSec = nullptr;
476 void addReloc(RelType DynType, InputSectionBase *IS, uint64_t OffsetInSec,
480 void addReloc(RelType DynType, InputSectionBase *InputSec,
530 const InputSectionBase *InputSec;
[all …]
H A DEhFrame.cpp40 EhReader(InputSectionBase *S, ArrayRef<uint8_t> D) : IS(S), D(D) {} in EhReader()
56 InputSectionBase *IS;
61 size_t elf::readEhRecordSize(InputSectionBase *S, size_t Off) { in readEhRecordSize()
H A DWriter.h22 class InputSectionBase; variable
51 llvm::StringRef getOutputSectionName(const InputSectionBase *S);
H A DDWARF.h24 InputSectionBase *Sec = nullptr;
74 llvm::Optional<llvm::RelocAddrEntry> findAux(const InputSectionBase &Sec,
H A DWriter.cpp94 StringRef elf::getOutputSectionName(const InputSectionBase *S) { in getOutputSectionName()
102 if (InputSectionBase *Rel = IS->getRelocatedSection()) { in getOutputSectionName()
156 for (InputSectionBase *&S : InputSections) { in combineEhFrameSections()
165 std::vector<InputSectionBase *> &V = InputSections; in combineEhFrameSections()
581 if (isa<InputSectionBase>(Sec) && !Sec->Live) in includeInSymtab()
934 llvm::function_ref<void(InputSectionBase &)> Fn) { in forEachRelSec()
940 for (InputSectionBase *IS : InputSections) in forEachRelSec()
1111 DenseMap<const InputSectionBase *, int> SectionOrder; in buildSectionOrder()
1391 if (A->kind() == InputSectionBase::Synthetic || in compareByFilePosition()
1392 B->kind() == InputSectionBase::Synthetic) in compareByFilePosition()
[all …]
H A DConfig.h28 class InputSectionBase; variable
121 llvm::MapVector<std::pair<const InputSectionBase *, const InputSectionBase *>,
H A DLinkerScript.h34 class InputSectionBase; variable
35 class InputSectionBase; variable
275 bool shouldKeep(InputSectionBase *S);
H A DOutputSections.h30 class InputSectionBase; variable
112 void sort(llvm::function_ref<int(InputSectionBase *S)> Order);
H A DDWARF.cpp30 for (InputSectionBase *Sec : Obj->getSections()) { in LLDDwarfObj()
64 LLDDwarfObj<ELFT>::findAux(const InputSectionBase &Sec, uint64_t Pos, in findAux()
H A DRelocations.h22 class InputSectionBase; variable
156 template <class ELFT> void scanRelocations(InputSectionBase &);
H A DSyntheticSections.cpp101 for (InputSectionBase *Sec : InputSections) { in create()
167 std::vector<InputSectionBase *> Sections; in create()
168 for (InputSectionBase *Sec : InputSections) in create()
176 for (InputSectionBase *Sec : Sections) { in create()
224 std::vector<InputSectionBase *> Sections; in create()
225 for (InputSectionBase *Sec : InputSections) in create()
233 for (InputSectionBase *Sec : Sections) { in create()
2406 for (InputSectionBase *S : InputSections) in getDebugInfoSections()
2434 InputSectionBase *S = Sections[R.SectionIndex]; in readAddressAreas()
2566 for (InputSectionBase *S : InputSections) in create()
[all …]
H A DOutputSections.cpp142 llvm::function_ref<int(InputSectionBase *S)> Order) { in sortByOrder()
165 void OutputSection::sort(llvm::function_ref<int(InputSectionBase *S)> Order) { in sort()
316 InputSectionBase *S = First->getRelocatedSection(); in finalize()
408 sort([](InputSectionBase *S) { return getPriority(S->Name); }); in sortInitFini()
H A DInputFiles.cpp93 InputSectionBase &Sec, uint64_t Offset) { in getSrcMsgAux()
108 std::string InputFile::getSrcMsg(const Symbol &Sym, InputSectionBase &Sec, in getSrcMsg()
205 Optional<DILineInfo> ObjFile<ELFT>::getDILineInfo(InputSectionBase *S, in getDILineInfo()
483 InputSectionBase *LinkSec = nullptr; in initializeSections()
584 InputSectionBase *ObjFile<ELFT>::getRelocTarget(const Elf_Shdr &Sec) { in getRelocTarget()
588 InputSectionBase *Target = this->Sections[Idx]; in getRelocTarget()
609 InputSectionBase *ObjFile<ELFT>::createInputSection(const Elf_Shdr &Sec) { in createInputSection()
638 InputSectionBase *Target = getRelocTarget(Sec); in createInputSection()
780 InputSectionBase *Sec = this->Sections[SecIdx]; in createSymbol()
H A DThunks.h44 InputSectionBase &Section);
H A DDriver.cpp657 auto FindSection = [&](StringRef Name) -> InputSectionBase * { in readCallGraph()
667 return dyn_cast_or_null<InputSectionBase>(DR->Section); in readCallGraph()
681 if (InputSectionBase *From = FindSection(Fields[0])) in readCallGraph()
682 if (InputSectionBase *To = FindSection(Fields[1])) in readCallGraph()
697 auto *From = dyn_cast_or_null<InputSectionBase>(FromSym->Section); in readCallGraphsFromObjectFiles()
698 auto *To = dyn_cast_or_null<InputSectionBase>(ToSym->Section); in readCallGraphsFromObjectFiles()
1603 for (InputSectionBase *S : F->getSections()) in link()
1607 for (InputSectionBase *S : F->getSections()) in link()
1613 llvm::erase_if(InputSections, [](InputSectionBase *S) { in link()
H A DTarget.cpp97 for (InputSectionBase *D : InputSections) { in getErrPlace()

12