| /freebsd-14.2/contrib/llvm-project/lld/ELF/ |
| H A D | CallGraphSort.cpp | 93 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 D | MarkLive.cpp | 53 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 D | LinkerScript.cpp | 442 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 D | InputSection.h | 124 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 D | InputSection.cpp | 40 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 D | CallGraphSort.h | 15 class InputSectionBase; variable 17 llvm::DenseMap<const InputSectionBase *, int> computeCacheDirectedSortOrder(); 19 llvm::DenseMap<const InputSectionBase *, int> computeCallGraphProfileOrder();
|
| H A D | LinkerScript.h | 31 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 D | InputFiles.h | 58 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 D | Config.h | 42 class InputSectionBase; variable 207 llvm::MapVector<std::pair<const InputSectionBase *, const InputSectionBase *>, 448 InputSectionBase *section; 460 SmallVector<InputSectionBase *, 0> inputSections;
|
| H A D | DWARF.h | 23 InputSectionBase *sec = nullptr; 85 std::optional<llvm::RelocAddrEntry> findAux(const InputSectionBase &sec,
|
| H A D | InputFiles.cpp | 425 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 D | OutputSections.h | 75 void recordSection(InputSectionBase *isec); 115 void sort(llvm::function_ref<int(InputSectionBase *s)> order);
|
| H A D | SyntheticSections.h | 427 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 §ion);
|
| H A D | Writer.cpp | 123 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 D | EhFrame.cpp | 38 EhReader(InputSectionBase *s, ArrayRef<uint8_t> d) : isec(s), d(d) {} in EhReader() 55 InputSectionBase *isec;
|
| H A D | OutputSections.cpp | 104 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 D | Target.cpp | 100 for (InputSectionBase *d : ctx.inputSections) { in getErrorPlace() 159 void TargetInfo::relocateAlloc(InputSectionBase &sec, uint8_t *buf) const { in relocateAlloc()
|
| H A D | Relocations.cpp | 90 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 D | Thunks.h | 44 InputSectionBase §ion);
|
| H A D | Symbols.cpp | 529 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 D | Target.h | 94 virtual void relocateAlloc(InputSectionBase &sec, uint8_t *buf) const; 197 InputSectionBase *isec;
|
| H A D | SyntheticSections.cpp | 110 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 D | Driver.cpp | 914 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 D | RISCV.cpp | 46 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> §ions) { 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 D | AArch64.cpp | 53 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()
|