Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/lld/ELF/
H A DCallGraphSort.cpp93 DenseMap<const InputSectionBase *, int> run();
97 std::vector<const InputSectionBase *> sections;
109 std::pair<const InputSectionBase *, const InputSectionBase *>;
116 DenseMap<const InputSectionBase *, int> secToCluster; in CallGraphSort()
130 const auto *toSB = cast<InputSectionBase>(c.first.second); in CallGraphSort()
236 DenseMap<const InputSectionBase *, int> orderMap; in run()
282 SmallVector<const InputSectionBase *, 0> sections; in computeCacheDirectedSortOrder()
283 DenseMap<const InputSectionBase *, size_t> secToTargetId; in computeCacheDirectedSortOrder()
298 const InputSectionBase *fromSB = cast<InputSectionBase>(c.first.first); in computeCacheDirectedSortOrder()
299 const InputSectionBase *toSB = cast<InputSectionBase>(c.first.second); in computeCacheDirectedSortOrder()
[all …]
H A DMarkLive.cpp53 void enqueue(InputSectionBase *sec, uint64_t offset);
76 static uint64_t getAddend(InputSectionBase &sec, in getAddend()
83 static uint64_t getAddend(InputSectionBase &sec, in getAddend()
98 auto *relSec = dyn_cast_or_null<InputSectionBase>(d->section); in resolveReloc()
163 static bool isReserved(InputSectionBase *sec) { in isReserved()
249 for (InputSectionBase *sec : ctx.inputSections) { in run()
308 InputSectionBase &sec = *queue.pop_back_val(); in mark()
316 for (InputSectionBase *isec : sec.dependentSections) in mark()
342 for (InputSectionBase *sec : ctx.inputSections) { in moveToMain()
368 for (InputSectionBase *sec : ctx.inputSections) in markLive()
[all …]
H A DLinkerScript.cpp442 auto alignmentComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
448 auto nameComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
451 auto priorityComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
495 SmallVector<InputSectionBase *, 0>
498 SmallVector<InputSectionBase *, 0> ret; in computeInputSections()
593 SmallVector<InputSectionBase *, 0>
595 SmallVector<InputSectionBase *, 0> ret; in createInputSectionList()
616 for (InputSectionBase *s : v) in processSectionCommands()
631 for (InputSectionBase *s : v) in processSectionCommands()
642 for (InputSectionBase *s : v) in processSectionCommands()
[all …]
H A DInputSection.h124 class InputSectionBase : public SectionBase {
197 InputSectionBase *nextInSectionGroup = nullptr;
292 class MergeInputSection : public InputSectionBase {
347 InputSectionBase *sec;
353 class EhInputSection : public InputSectionBase {
374 class InputSection : public InputSectionBase {
401 InputSectionBase *getRelocatedSection() const;
434 InputSectionBase::Synthetic) {}
446 return sec->kind() == InputSectionBase::Synthetic; in classof()
450 inline bool isDebugSection(const InputSectionBase &sec) { in isDebugSection()
[all …]
H A DInputSection.cpp40 std::string lld::toString(const InputSectionBase *sec) { in toString()
52 InputSectionBase::InputSectionBase(InputFile *file, uint64_t flags, in InputSectionBase() function in InputSectionBase
90 InputSectionBase::InputSectionBase(ObjFile<ELFT> &file, in InputSectionBase() function in InputSectionBase
104 size_t InputSectionBase::getSize() const { in getSize()
123 void InputSectionBase::decompress() const { in decompress()
317 : InputSectionBase(f, flags, type, in InputSection()
324 : InputSectionBase(f, header, name, InputSectionBase::Regular) {} in InputSection()
361 InputSectionBase *sec = getRelocatedSection(); in copyRelocations()
394 InputSectionBase *sec = getRelocatedSection(); in copyRelocations()
1228 : InputSectionBase(f, header, name, InputSectionBase::EHFrame) {} in EhInputSection()
[all …]
H A DCallGraphSort.h15 class InputSectionBase; variable
17 llvm::DenseMap<const InputSectionBase *, int> computeCacheDirectedSortOrder();
19 llvm::DenseMap<const InputSectionBase *, int> computeCallGraphProfileOrder();
H A DLinkerScript.h31 class InputSectionBase; variable
215 SmallVector<InputSectionBase *, 0> sectionBases;
287 SmallVector<InputSectionBase *, 0>
289 ArrayRef<InputSectionBase *>);
291 SmallVector<InputSectionBase *, 0> createInputSectionList(OutputSection &cmd);
320 void discard(InputSectionBase &s);
333 bool shouldKeep(InputSectionBase *s);
381 SmallVector<const InputSectionBase *, 0> orphanSections;
H A DInputFiles.h58 SmallVector<InputSectionBase *, 0> sections;
83 ArrayRef<InputSectionBase *> getSections() const { in getSections()
139 std::string getSrcMsg(const Symbol &sym, const InputSectionBase &sec,
258 std::optional<llvm::DILineInfo> getDILineInfo(const InputSectionBase *,
300 InputSectionBase *getRelocTarget(uint32_t idx, const Elf_Shdr &sec,
302 InputSectionBase *createInputSection(uint32_t idx, const Elf_Shdr &sec,
H A DConfig.h42 class InputSectionBase; variable
207 llvm::MapVector<std::pair<const InputSectionBase *, const InputSectionBase *>,
448 InputSectionBase *section;
460 SmallVector<InputSectionBase *, 0> inputSections;
H A DDWARF.h23 InputSectionBase *sec = nullptr;
85 std::optional<llvm::RelocAddrEntry> findAux(const InputSectionBase &sec,
H A DInputFiles.cpp425 if (InputSectionBase *s = sections[index]) in handleSectionGroup()
438 InputSectionBase *head; in handleSectionGroup()
439 InputSectionBase *prev = nullptr; in handleSectionGroup()
441 InputSectionBase *s = sections[index]; in handleSectionGroup()
482 ArrayRef<InputSectionBase *> sections = s->file->getSections(); in getDILineInfo()
832 InputSectionBase *s = getRelocTarget(i, sec, info); in initializeSections()
874 InputSectionBase *linkSec = nullptr; in initializeSections()
966 InputSectionBase *ObjFile<ELFT>::getRelocTarget(uint32_t idx, in getRelocTarget()
970 InputSectionBase *target = this->sections[info]; in getRelocTarget()
1153 InputSectionBase *sec = sections[secIdx]; in initSectionsAndLocalSyms()
[all …]
H A DOutputSections.h75 void recordSection(InputSectionBase *isec);
115 void sort(llvm::function_ref<int(InputSectionBase *s)> order);
H A DSyntheticSections.h427 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc()
433 DynamicReloc(RelType type, const InputSectionBase *inputSec,
439 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc()
461 const InputSectionBase *inputSec;
503 void addSymbolReloc(RelType dynType, InputSectionBase &isec,
512 void addRelativeReloc(RelType dynType, InputSectionBase &isec, in addRelativeReloc()
525 void addReloc(DynamicReloc::Kind kind, RelType dynType, InputSectionBase &sec, in addReloc()
596 const InputSectionBase *inputSec;
1108 return sec->kind() == InputSectionBase::Synthetic && in classof()
1295 uint64_t size, InputSectionBase &section);
H A DWriter.cpp123 SmallVector<InputSectionBase *, 0> newSections; in copySectionsIntoPartitions()
126 for (InputSectionBase *s : ctx.inputSections) { in copySectionsIntoPartitions()
695 for (InputSectionBase *s : f->getSections()) { in markUsedLocalSymbols()
790 InputSectionBase *isec = nullptr; in addSectionSymbols()
797 for (InputSectionBase *s : isd->sections) { in addSectionSymbols()
1286 for (InputSectionBase *sec : sections) in maybeShuffle()
1301 for (InputSectionBase *&sec : sections) in maybeShuffle()
1309 for (InputSectionBase *sec : sections) { in maybeShuffle()
1317 DenseMap<const InputSectionBase *, int> sectionOrder; in buildSectionOrder()
1792 const InputSectionBase *inputSec = dyn_cast<InputSectionBase>(sec); in fixSymbolsAfterShrinking()
[all …]
H A DEhFrame.cpp38 EhReader(InputSectionBase *s, ArrayRef<uint8_t> d) : isec(s), d(d) {} in EhReader()
55 InputSectionBase *isec;
H A DOutputSections.cpp104 void OutputSection::recordSection(InputSectionBase *isec) { in recordSection()
196 for (InputSectionBase *s : isd->sectionBases) { in finalizeInputSections()
246 llvm::function_ref<int(InputSectionBase *s)> order) { in sortByOrder()
262 void OutputSection::sort(llvm::function_ref<int(InputSectionBase *s)> order) { in sort()
572 ArrayRef<InputSectionBase *> sections = section->file->getSections(); in finalizeShtGroup()
612 InputSectionBase *s = first->getRelocatedSection(); in finalize()
721 sort([](InputSectionBase *s) { return getPriority(s->name); }); in sortInitFini()
H A DTarget.cpp100 for (InputSectionBase *d : ctx.inputSections) { in getErrorPlace()
159 void TargetInfo::relocateAlloc(InputSectionBase &sec, uint8_t *buf) const { in relocateAlloc()
H A DRelocations.cpp90 static std::string getLocation(InputSectionBase &s, const Symbol &sym, in getLocation()
420 explicit OffsetGetter(InputSectionBase &sec) { in OffsetGetter()
462 template <class ELFT> void scanSection(InputSectionBase &s);
465 InputSectionBase *sec;
565 InputSectionBase *sec;
750 InputSectionBase &sec = *l.sec; in reportUndefinedSymbol()
817 static bool maybeReportUndefined(Undefined &sym, InputSectionBase &sec, in maybeReportUndefined()
869 static void addRelativeReloc(InputSectionBase &isec, uint64_t offsetInSec, in addRelativeReloc()
1246 InputSectionBase &c, uint64_t offset, in handleMipsTlsRelocation()
1269 InputSectionBase &c, uint64_t offset, in handleTlsRelocation()
[all …]
H A DThunks.h44 InputSectionBase &section);
H A DSymbols.cpp529 InputSectionBase *errSec, uint64_t errOffset) { in reportDuplicate()
554 auto *sec1 = cast<InputSectionBase>(d->section); in reportDuplicate()
573 dyn_cast_or_null<InputSectionBase>(other.section), in checkDuplicate()
H A DTarget.h94 virtual void relocateAlloc(InputSectionBase &sec, uint8_t *buf) const;
197 InputSectionBase *isec;
H A DSyntheticSections.cpp110 for (InputSectionBase *sec : ctx.inputSections) { in create()
177 SmallVector<InputSectionBase *, 0> sections; in create()
178 for (InputSectionBase *sec : ctx.inputSections) in create()
186 for (InputSectionBase *sec : sections) { in create()
234 SmallVector<InputSectionBase *, 0> sections; in create()
235 for (InputSectionBase *sec : ctx.inputSections) in create()
243 for (InputSectionBase *sec : sections) { in create()
2746 InputSectionBase *s = sections[r.SectionIndex]; in readAddressAreas()
2884 for (InputSectionBase *s : ctx.inputSections) { in create()
3338 for (InputSectionBase *sec : file->getSections()) { in splitSections()
[all …]
H A DDriver.cpp914 auto findSection = [&](StringRef name) -> InputSectionBase * { in readCallGraph()
924 return dyn_cast_or_null<InputSectionBase>(dr->section); in readCallGraph()
938 if (InputSectionBase *from = findSection(fields[0])) in readCallGraph()
939 if (InputSectionBase *to = findSection(fields[1])) in readCallGraph()
1007 auto *to = dyn_cast_or_null<InputSectionBase>(toSym->section); in readCallGraphsFromObjectFiles()
2295 static void readSymbolPartitionSection(InputSectionBase *s) { in readSymbolPartitionSection()
2905 for (InputSectionBase *s : f->getSections()) { in link()
2915 for (InputSectionBase *s : f->getSections()) in link()
2922 llvm::erase_if(ctx.inputSections, [](InputSectionBase *s) { in link()
2932 llvm::erase_if(ctx.inputSections, [](InputSectionBase *s) { in link()
[all …]
/freebsd-14.2/contrib/llvm-project/lld/ELF/Arch/
H A DRISCV.cpp46 void relocateAlloc(InputSectionBase &sec, uint8_t *buf) const override;
593 void RISCV::relocateAlloc(InputSectionBase &sec, uint8_t *buf) const { in relocateAlloc()
1061 unsigned &mergedXlen, const InputSectionBase *sec, in mergeArch()
1088 mergeAttributesSection(const SmallVector<InputSectionBase *, 0> &sections) { in mergeAttributesSection() argument
1090 const InputSectionBase *firstStackAlign = nullptr; in mergeAttributesSection()
1099 for (const InputSectionBase *sec : sections) { in mergeAttributesSection()
1220 SmallVector<InputSectionBase *, 0> sections; in mergeRISCVAttributesSections()
1221 llvm::erase_if(ctx.inputSections, [&](InputSectionBase *s) { in mergeRISCVAttributesSections()
H A DAArch64.cpp53 void relocateAlloc(InputSectionBase &sec, uint8_t *buf) const override;
772 void AArch64::relocateAlloc(InputSectionBase &sec, uint8_t *buf) const { in relocateAlloc()
988 addTaggedSymbolReferences(InputSectionBase &sec, in addTaggedSymbolReferences()
1039 for (InputSectionBase *section : file->getSections()) { in createTaggedSymbols()

12