reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
382 if (I == 0 && Sec->IsImplicit) 390 if (initImplicitHeader(CBA, SHeader, Sec->Name, 391 Sec->IsImplicit ? nullptr : Sec)) 391 Sec->IsImplicit ? nullptr : Sec)) 394 assert(Sec && "It can't be null unless it is an implicit section. But all " 398 DotShStrtab.getOffset(ELFYAML::dropUniqueSuffix(Sec->Name)); 399 SHeader.sh_type = Sec->Type; 400 if (Sec->Flags) 401 SHeader.sh_flags = *Sec->Flags; 402 SHeader.sh_addr = Sec->Address; 403 SHeader.sh_addralign = Sec->AddressAlign; 405 if (!Sec->Link.empty()) 406 SHeader.sh_link = toSectionIndex(Sec->Link, Sec->Name); 406 SHeader.sh_link = toSectionIndex(Sec->Link, Sec->Name); 409 if (auto RawSec = dyn_cast<ELFYAML::RawContentSection>(Sec)) { 416 if (Sec->EntSize) 417 SHeader.sh_entsize = *Sec->EntSize; 418 } else if (auto S = dyn_cast<ELFYAML::RawContentSection>(Sec)) { 420 } else if (auto S = dyn_cast<ELFYAML::SymtabShndxSection>(Sec)) { 422 } else if (auto S = dyn_cast<ELFYAML::RelocationSection>(Sec)) { 424 } else if (auto S = dyn_cast<ELFYAML::Group>(Sec)) { 426 } else if (auto S = dyn_cast<ELFYAML::MipsABIFlags>(Sec)) { 428 } else if (auto S = dyn_cast<ELFYAML::NoBitsSection>(Sec)) { 434 } else if (auto S = dyn_cast<ELFYAML::DynamicSection>(Sec)) { 436 } else if (auto S = dyn_cast<ELFYAML::SymverSection>(Sec)) { 438 } else if (auto S = dyn_cast<ELFYAML::VerneedSection>(Sec)) { 440 } else if (auto S = dyn_cast<ELFYAML::VerdefSection>(Sec)) { 442 } else if (auto S = dyn_cast<ELFYAML::StackSizesSection>(Sec)) { 444 } else if (auto S = dyn_cast<ELFYAML::HashSection>(Sec)) { 446 } else if (auto S = dyn_cast<ELFYAML::AddrsigSection>(Sec)) { 448 } else if (auto S = dyn_cast<ELFYAML::NoteSection>(Sec)) { 455 if (Sec) { 456 if (Sec->ShName) 457 SHeader.sh_name = *Sec->ShName; 458 if (Sec->ShOffset) 459 SHeader.sh_offset = *Sec->ShOffset; 460 if (Sec->ShSize) 461 SHeader.sh_size = *Sec->ShSize;