Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/lld/ELF/
H A DMarkLive.cpp54 void enqueue(InputSectionBase *sec, uint64_t offset);
77 static uint64_t getAddend(InputSectionBase &sec, in getAddend()
84 static uint64_t getAddend(InputSectionBase &sec, in getAddend()
170 static bool isReserved(InputSectionBase *sec) { in isReserved()
248 for (InputSectionBase *sec : inputSections) { in run()
289 InputSectionBase &sec = *queue.pop_back_val(); in mark()
299 for (InputSectionBase *isec : sec.dependentSections) in mark()
325 for (InputSectionBase *sec : inputSections) { in moveToMain()
343 for (InputSectionBase *sec : inputSections) in markLive()
382 for (InputSectionBase *sec : inputSections) { in markLive()
[all …]
H A DCallGraphSort.cpp81 DenseMap<const InputSectionBase *, int> run();
85 std::vector<const InputSectionBase *> sections;
97 std::pair<const InputSectionBase *, const InputSectionBase *>;
104 DenseMap<const InputSectionBase *, int> secToCluster; in CallGraphSort()
106 auto getOrCreateNode = [&](const InputSectionBase *isec) -> 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()
181 DenseMap<const InputSectionBase *, int> CallGraphSort::run() { in run()
224 DenseMap<const InputSectionBase *, int> orderMap; in run()
267 DenseMap<const InputSectionBase *, int> elf::computeCallGraphProfileOrder() { in computeCallGraphProfileOrder()
H A DLinkerScript.cpp382 auto alignmentComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
388 auto nameComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
391 auto priorityComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
433 std::vector<InputSectionBase *>
436 std::vector<InputSectionBase *> ret; in computeInputSections()
541 std::vector<InputSectionBase *>
543 std::vector<InputSectionBase *> ret; in createInputSectionList()
564 for (InputSectionBase *s : v) in processSectionCommands()
579 for (InputSectionBase *s : v) in processSectionCommands()
590 for (InputSectionBase *s : v) in processSectionCommands()
[all …]
H A DInputSection.h104 class InputSectionBase : public SectionBase {
110 InputSectionBase(InputFile *file, uint64_t flags, uint32_t type,
171 InputSectionBase *nextInSectionGroup = nullptr;
271 class MergeInputSection : public InputSectionBase {
324 InputSectionBase *sec;
330 class EhInputSection : public InputSectionBase {
350 class InputSection : public InputSectionBase {
374 InputSectionBase *getRelocatedSection() const;
400 inline bool isDebugSection(const InputSectionBase &sec) { in isDebugSection()
406 extern std::vector<InputSectionBase *> inputSections;
[all …]
H A DInputSection.cpp43 std::vector<InputSectionBase *> elf::inputSections;
59 InputSectionBase::InputSectionBase(InputFile *file, uint64_t flags, in InputSectionBase() function in InputSectionBase
139 InputSectionBase::InputSectionBase(ObjFile<ELFT> &file, in InputSectionBase() function in InputSectionBase
153 size_t InputSectionBase::getSize() const { in getSize()
161 void InputSectionBase::uncompress() const { in uncompress()
177 uint64_t InputSectionBase::getOffsetInFile() const { in getOffsetInFile()
359 : InputSectionBase(f, flags, type, in InputSection()
366 : InputSectionBase(f, header, name, InputSectionBase::Regular) {} in InputSection()
411 InputSectionBase *sec = getRelocatedSection(); in copyRelocations()
1303 : InputSectionBase(f, header, name, InputSectionBase::EHFrame) {} in EhInputSection()
[all …]
H A DLinkerScript.h34 class InputSectionBase; variable
193 std::vector<InputSectionBase *> sectionBases;
265 std::vector<InputSectionBase *>
267 ArrayRef<InputSectionBase *>);
269 std::vector<InputSectionBase *> createInputSectionList(OutputSection &cmd);
301 void discard(InputSectionBase *s);
313 bool shouldKeep(InputSectionBase *s);
350 std::vector<const InputSectionBase *> orphanSections;
H A DCallGraphSort.h16 class InputSectionBase; variable
18 llvm::DenseMap<const InputSectionBase *, int> computeCallGraphProfileOrder();
H A DEhFrame.h16 class InputSectionBase; variable
19 size_t readEhRecordSize(InputSectionBase *s, size_t off);
H A DInputFiles.h80 ArrayRef<InputSectionBase *> getSections() const { in getSections()
112 std::string getSrcMsg(const Symbol &sym, InputSectionBase &sec,
152 std::vector<InputSectionBase *> sections;
226 llvm::Optional<llvm::DILineInfo> getDILineInfo(InputSectionBase *, uint64_t);
263 InputSectionBase *getRelocTarget(const Elf_Shdr &sec);
264 InputSectionBase *createInputSection(const Elf_Shdr &sec);
H A DOutputSections.h26 class InputSectionBase; variable
74 void recordSection(InputSectionBase *isec);
109 void sort(llvm::function_ref<int(InputSectionBase *s)> order);
H A DWriter.cpp185 std::vector<InputSectionBase *> newSections; in copySectionsIntoPartitions()
187 for (InputSectionBase *s : inputSections) { in copySectionsIntoPartitions()
190 InputSectionBase *copy; in copySectionsIntoPartitions()
208 for (InputSectionBase *&s : inputSections) { in combineEhSections()
224 std::vector<InputSectionBase *> &v = inputSections; in combineEhSections()
690 for (InputSectionBase *s : f->getSections()) { in markUsedLocalSymbols()
1115 for (InputSectionBase *isec : inputSections) in forEachRelSec()
1302 for (InputSectionBase *sec : sections) in maybeShuffle()
1317 for (InputSectionBase *&sec : sections) in maybeShuffle()
1325 for (InputSectionBase *sec : sections) { in maybeShuffle()
[all …]
H A DWriter.h22 class InputSectionBase; variable
54 llvm::StringRef getOutputSectionName(const InputSectionBase *s);
H A DEhFrame.cpp38 EhReader(InputSectionBase *s, ArrayRef<uint8_t> d) : isec(s), d(d) {} in EhReader()
56 InputSectionBase *isec;
61 size_t elf::readEhRecordSize(InputSectionBase *s, size_t off) { in readEhRecordSize()
H A DRelocations.cpp90 static std::string getLocation(InputSectionBase &s, const Symbol &sym, in getLocation()
190 handleTlsRelocation(RelType type, Symbol &sym, InputSectionBase &c, in handleTlsRelocation()
673 InputSectionBase &sec, RelExpr expr, in computeAddend()
733 InputSectionBase *sec;
901 InputSectionBase &sec = *l.sec; in reportUndefinedSymbol()
959 static bool maybeReportUndefined(Symbol &sym, InputSectionBase &sec, in maybeReportUndefined()
1025 explicit OffsetGetter(InputSectionBase &sec) { in OffsetGetter()
2143 template void elf::scanRelocations<ELF32LE>(InputSectionBase &);
2144 template void elf::scanRelocations<ELF32BE>(InputSectionBase &);
2145 template void elf::scanRelocations<ELF64LE>(InputSectionBase &);
[all …]
H A DSyntheticSections.h44 InputSectionBase::Synthetic) {
58 return d->kind() == InputSectionBase::Synthetic; in classof()
449 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc()
455 DynamicReloc(RelType type, const InputSectionBase *inputSec,
461 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc()
481 const InputSectionBase *inputSec;
526 void addSymbolReloc(RelType dynType, InputSectionBase *isec,
531 void addRelativeReloc(RelType dynType, InputSectionBase *isec,
537 InputSectionBase *isec,
593 const InputSectionBase *inputSec;
[all …]
H A DOutputSections.cpp100 void OutputSection::recordSection(InputSectionBase *isec) { in recordSection()
174 for (InputSectionBase *s : cmd->sectionBases) { in finalizeInputSections()
224 llvm::function_ref<int(InputSectionBase *s)> order) { in sortByOrder()
244 void OutputSection::sort(llvm::function_ref<int(InputSectionBase *s)> order) { in sort()
391 ArrayRef<InputSectionBase *> sections = section->file->getSections(); in finalizeShtGroup()
431 InputSectionBase *s = first->getRelocatedSection(); in finalize()
531 sort([](InputSectionBase *s) { return getPriority(s->name); }); in sortInitFini()
H A DDWARF.h23 InputSectionBase *sec = nullptr;
85 llvm::Optional<llvm::RelocAddrEntry> findAux(const InputSectionBase &sec,
H A DInputFiles.cpp314 Optional<DILineInfo> ObjFile<ELFT>::getDILineInfo(InputSectionBase *s, in getDILineInfo()
318 ArrayRef<InputSectionBase *> sections = s->file->getSections(); in getDILineInfo()
534 if (InputSectionBase *s = sections[index]) in handleSectionGroup()
547 InputSectionBase *head; in handleSectionGroup()
548 InputSectionBase *prev = nullptr; in handleSectionGroup()
550 InputSectionBase *s = sections[index]; in handleSectionGroup()
675 InputSectionBase *linkSec = nullptr; in initializeSections()
856 InputSectionBase *target = this->sections[idx]; in getRelocTarget()
952 InputSectionBase *target = getRelocTarget(sec); in createInputSection()
1113 InputSectionBase *sec = this->sections[secIdx]; in initializeSymbols()
[all …]
H A DConfig.h31 class InputSectionBase; variable
143 llvm::MapVector<std::pair<const InputSectionBase *, const InputSectionBase *>,
H A DDWARF.cpp34 InputSectionBase *sec = it.value(); in LLDDwarfObj()
107 LLDDwarfObj<ELFT>::findAux(const InputSectionBase &sec, uint64_t pos, in findAux()
H A DRelocations.h21 class InputSectionBase; variable
126 template <class ELFT> void scanRelocations(InputSectionBase &);
H A DThunks.h45 InputSectionBase &section);
H A DDriver.cpp828 auto findSection = [&](StringRef name) -> InputSectionBase * { in readCallGraph()
838 return dyn_cast_or_null<InputSectionBase>(dr->section); in readCallGraph()
852 if (InputSectionBase *from = findSection(fields[0])) in readCallGraph()
853 if (InputSectionBase *to = findSection(fields[1])) in readCallGraph()
922 auto *to = dyn_cast_or_null<InputSectionBase>(toSym->section); in readCallGraphsFromObjectFiles()
1915 static void readSymbolPartitionSection(InputSectionBase *s) { in readSymbolPartitionSection()
2355 for (InputSectionBase *s : f->getSections()) in link()
2359 for (InputSectionBase *s : f->getSections()) in link()
2365 llvm::erase_if(inputSections, [](InputSectionBase *s) { in link()
2379 if (InputSectionBase *rel = isec->getRelocatedSection()) in link()
[all …]
H A DSyntheticSections.cpp108 for (InputSectionBase *sec : inputSections) { in create()
174 std::vector<InputSectionBase *> sections; in create()
175 for (InputSectionBase *sec : inputSections) in create()
183 for (InputSectionBase *sec : sections) { in create()
231 std::vector<InputSectionBase *> sections; in create()
232 for (InputSectionBase *sec : inputSections) in create()
240 for (InputSectionBase *sec : sections) { in create()
2791 InputSectionBase *s = sections[r.SectionIndex]; in readAddressAreas()
2921 for (InputSectionBase *s : inputSections) { in create()
2934 llvm::erase_if(inputSections, [](InputSectionBase *s) { in create()
[all …]
H A DSymbols.cpp627 InputSectionBase *errSec, uint64_t errOffset) { in reportDuplicate()
645 auto *sec1 = cast<InputSectionBase>(d->section); in reportDuplicate()
697 dyn_cast_or_null<InputSectionBase>(other.section), in resolveDefined()

12