Lines Matching defs:InputSection

1 //===- InputSection.cpp ---------------------------------------------------===//
9 #include "InputSection.h"
158 // InputSection with false decodedCrel.
159 if (!relSec || !cast<InputSection>(relSec)->decodedCrel) {
160 auto *sec = makeThreadLocal<InputSection>(*f, shdr, name);
209 return cast<InputSection>(this)->outSecOff + offset;
215 // Second, InputSection::copyRelocations on .eh_frame. Some pieces may be
219 if (InputSection *isec = es->getParent())
225 if (InputSection *isec = ms->getParent())
238 InputSection *sec;
239 if (auto *isec = dyn_cast<InputSection>(this))
286 InputSection *InputSectionBase::getLinkOrderDep() const {
290 return cast<InputSection>(file->getSections()[link]);
383 : InputSection(source.file, source.name, source.type, source.flags,
387 InputSection InputSection::discarded(nullptr, "", 0, 0, 0, 0,
390 InputSection::InputSection(InputFile *f, StringRef name, uint32_t type,
396 assert(f || this == &InputSection::discarded);
400 InputSection::InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
405 template <class ELFT> void InputSection::copyShtGroup(uint8_t *buf) {
426 InputSectionBase *InputSection::getRelocatedSection() const {
434 void InputSection::copyRelocations(Ctx &ctx, uint8_t *buf) {
471 void InputSection::copyRelocations(Ctx &ctx, uint8_t *buf,
682 InputSection *hiSec = cast<InputSection>(d->section);
1017 void InputSection::relocateNonAlloc(Ctx &ctx, uint8_t *buf,
1177 auto *sec = cast<InputSection>(this);
1259 if (InputSection *isec = cast_or_null<InputSection>(d->section))
1283 template <class ELFT> void InputSection::writeTo(Ctx &ctx, uint8_t *buf) {
1286 // If -r or --emit-relocs is given, then an InputSection
1325 void InputSection::replace(InputSection *other) {
1334 for (InputSection *isec : dependentSections)
1514 template InputSection::InputSection(ObjFile<ELF32LE> &, const ELF32LE::Shdr &,
1516 template InputSection::InputSection(ObjFile<ELF32BE> &, const ELF32BE::Shdr &,
1518 template InputSection::InputSection(ObjFile<ELF64LE> &, const ELF64LE::Shdr &,
1520 template InputSection::InputSection(ObjFile<ELF64BE> &, const ELF64BE::Shdr &,
1523 template void InputSection::writeTo<ELF32LE>(Ctx &, uint8_t *);
1524 template void InputSection::writeTo<ELF32BE>(Ctx &, uint8_t *);
1525 template void InputSection::writeTo<ELF64LE>(Ctx &, uint8_t *);
1526 template void InputSection::writeTo<ELF64BE>(Ctx &, uint8_t *);