| /freebsd-12-stable/contrib/llvm-project/lld/MachO/ |
| D | OutputSegment.cpp | 49 for (const OutputSection *osec : sections) in numNonHiddenSections() local 50 count += (!osec->isHidden() ? 1 : 0); in numNonHiddenSections() 54 void OutputSegment::addOutputSection(OutputSection *osec) { in addOutputSection() argument 55 inputOrder = std::min(inputOrder, osec->inputOrder); in addOutputSection() 57 osec->parent = this; in addOutputSection() 58 sections.push_back(osec); in addOutputSection() 61 if (sectAlign.segName == name && sectAlign.sectName == osec->name) in addOutputSection() 62 osec->align = sectAlign.align; in addOutputSection() 82 static int sectionOrder(OutputSection *osec) { in sectionOrder() argument 83 StringRef segname = osec->parent->name; in sectionOrder() [all …]
|
| D | Writer.cpp | 247 for (const OutputSection *osec : seg->getSections()) { in writeTo() local 248 if (osec->isHidden()) in writeTo() 254 memcpy(sectHdr->sectname, osec->name.data(), osec->name.size()); in writeTo() 257 sectHdr->addr = osec->addr; in writeTo() 258 sectHdr->offset = osec->fileOff; in writeTo() 259 sectHdr->align = Log2_32(osec->align); in writeTo() 260 sectHdr->flags = osec->flags; in writeTo() 261 sectHdr->size = osec->getSize(); in writeTo() 262 sectHdr->reserved1 = osec->reserved1; in writeTo() 263 sectHdr->reserved2 = osec->reserved2; in writeTo() [all …]
|
| D | MapFile.cpp | 136 for (OutputSection *osec : seg->getSections()) { in writeMapFile() 137 if (osec->isHidden()) in writeMapFile() 140 os << format("0x%08llX\t0x%08llX\t%s\t%s\n", osec->addr, osec->getSize(), in writeMapFile() 141 seg->name.str().c_str(), osec->name.str().c_str()); in writeMapFile()
|
| D | SymbolTable.cpp | 224 OutputSection *osec = nullptr; in handleSectionBoundarySymbol() local 228 osec = ssec->isec->parent; in handleSectionBoundarySymbol() 232 if (!osec) { in handleSectionBoundarySymbol() 243 osec = isec->parent = ConcatOutputSection::getOrCreateForInput(isec); in handleSectionBoundarySymbol() 248 osec->sectionStartSymbols.push_back(createBoundarySymbol(sym)); in handleSectionBoundarySymbol() 250 osec->sectionEndSymbols.push_back(createBoundarySymbol(sym)); in handleSectionBoundarySymbol()
|
| D | InputSection.cpp | 205 auto *osec = cast<WordLiteralSection>(parent); in getOffset() local 209 return osec->getLiteral4Offset(buf + off); in getOffset() 211 return osec->getLiteral8Offset(buf + off); in getOffset() 213 return osec->getLiteral16Offset(buf + off); in getOffset()
|
| D | ConcatOutputSection.cpp | 366 ConcatOutputSection *&osec = concatOutputSections[names]; in getOrCreateForInput() local 367 if (!osec) in getOrCreateForInput() 368 osec = make<ConcatOutputSection>(names.second); in getOrCreateForInput() 369 return osec; in getOrCreateForInput()
|
| D | Driver.cpp | 583 ConcatOutputSection *osec = nullptr; in replaceCommonSymbols() local 596 if (!osec) in replaceCommonSymbols() 597 osec = ConcatOutputSection::getOrCreateForInput(isec); in replaceCommonSymbols() 598 isec->parent = osec; in replaceCommonSymbols() 1047 ConcatOutputSection *osec = nullptr; in gatherInputSections() local 1058 if (!osec) in gatherInputSections() 1059 osec = ConcatOutputSection::getOrCreateForInput(isec); in gatherInputSections() 1060 isec->parent = osec; in gatherInputSections()
|
| D | SyntheticSections.cpp | 125 for (const OutputSection *osec : seg->getSections()) { in writeTo() local 126 if (isThreadLocalVariables(osec->flags)) { in writeTo() 169 static void encodeRebase(const OutputSection *osec, uint64_t outSecOff, in encodeRebase() argument 171 OutputSegment *seg = osec->parent; in encodeRebase() 172 uint64_t offset = osec->getSegmentOffset() + outSecOff; in encodeRebase() 294 static void encodeBinding(const OutputSection *osec, uint64_t outSecOff, in encodeBinding() argument 297 OutputSegment *seg = osec->parent; in encodeBinding() 298 uint64_t offset = osec->getSegmentOffset() + outSecOff; in encodeBinding()
|
| /freebsd-12-stable/contrib/llvm-project/lld/ELF/ |
| D | MapFile.cpp | 90 OutputSection *osec = syms[i]->getOutputSection(); in getSymbolStrings() local 92 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0; in getSymbolStrings() 133 const OutputSection *osec = sec->getOutputSection(); in printEhFrame() local 135 writeHeader(os, osec->addr + p.outputOff, osec->getLMA() + p.outputOff, in printEhFrame() 166 OutputSection* osec = nullptr; in writeMapFile() local 171 uint64_t lma = osec ? osec->getLMA() + cmd->addr - osec->getVA(0) : 0; in writeMapFile() 177 osec = cast<OutputSection>(base); in writeMapFile() 178 writeHeader(os, osec->addr, osec->getLMA(), osec->size, osec->alignment); in writeMapFile() 179 os << osec->name << '\n'; in writeMapFile() 182 for (BaseCommand *base : osec->sectionCommands) { in writeMapFile() [all …]
|
| D | LinkerScript.cpp | 558 auto process = [this](OutputSection *osec) { in processSectionCommands() argument 559 std::vector<InputSectionBase *> v = createInputSectionList(*osec); in processSectionCommands() 563 if (osec->name == "/DISCARD/") { in processSectionCommands() 566 discardSynthetic(*osec); in processSectionCommands() 567 osec->sectionCommands.clear(); in processSectionCommands() 578 if (!matchConstraints(v, osec->constraint)) { in processSectionCommands() 581 osec->sectionCommands.clear(); in processSectionCommands() 588 if (osec->subalignExpr) { in processSectionCommands() 589 uint32_t subalign = osec->subalignExpr().getValue(); in processSectionCommands() 597 osec->partition = 1; in processSectionCommands() [all …]
|
| D | Relocations.cpp | 612 OutputSection *osec = (isRO ? in.bssRelRo : in.bss)->getParent(); in addCopyRelSymbol() local 616 if (osec->sectionCommands.empty() || in addCopyRelSymbol() 617 !isa<InputSectionDescription>(osec->sectionCommands.back())) in addCopyRelSymbol() 618 osec->sectionCommands.push_back(make<InputSectionDescription>("")); in addCopyRelSymbol() 619 auto *isd = cast<InputSectionDescription>(osec->sectionCommands.back()); in addCopyRelSymbol() 621 osec->commitSection(sec); in addCopyRelSymbol()
|
| D | OutputSections.cpp | 393 if (OutputSection *osec = sections[read32(&idx)]->getOutputSection()) in finalizeShtGroup() local 394 seen.insert(osec->sectionIndex); in finalizeShtGroup()
|
| D | InputSection.cpp | 393 OutputSection *osec = sections[idx]->getOutputSection(); in copyShtGroup() local 394 if (osec && seen.insert(osec->sectionIndex).second) in copyShtGroup() 395 *to++ = osec->sectionIndex; in copyShtGroup()
|
| /freebsd-12-stable/contrib/gdb/gdb/ |
| D | gcore.c | 289 make_output_phdrs (bfd *obfd, asection *osec, void *ignored) in make_output_phdrs() argument 295 if (strncmp (bfd_section_name (obfd, osec), "load", 4) == 0) in make_output_phdrs() 301 if (!(bfd_get_section_flags (obfd, osec) & SEC_READONLY)) in make_output_phdrs() 303 if (bfd_get_section_flags (obfd, osec) & SEC_CODE) in make_output_phdrs() 306 bfd_record_phdr (obfd, p_type, 1, p_flags, 0, 0, 0, 0, 1, &osec); in make_output_phdrs() 314 asection *osec; in gcore_create_callback() local 371 osec = bfd_make_section_anyway (obfd, "load"); in gcore_create_callback() 372 if (osec == NULL) in gcore_create_callback() 385 bfd_set_section_size (obfd, osec, size); in gcore_create_callback() 386 bfd_set_section_vma (obfd, osec, vaddr); in gcore_create_callback() [all …]
|
| /freebsd-12-stable/contrib/binutils/ld/ |
| D | ldmain.c | 995 asection *osec, in multiple_definition() argument 1006 if ((osec->output_section != NULL in multiple_definition() 1007 && ! bfd_is_abs_section (osec) in multiple_definition() 1008 && bfd_is_abs_section (osec->output_section)) in multiple_definition() 1017 einfo (_("%D: first defined here\n"), obfd, osec, oval); in multiple_definition()
|
| /freebsd-12-stable/contrib/binutils/bfd/ |
| D | peXXigen.c | 2032 asection *osec) in _bfd_XX_bfd_copy_private_section_data() argument 2041 if (coff_section_data (obfd, osec) == NULL) in _bfd_XX_bfd_copy_private_section_data() 2044 osec->used_by_bfd = bfd_zalloc (obfd, amt); in _bfd_XX_bfd_copy_private_section_data() 2045 if (osec->used_by_bfd == NULL) in _bfd_XX_bfd_copy_private_section_data() 2049 if (pei_section_data (obfd, osec) == NULL) in _bfd_XX_bfd_copy_private_section_data() 2052 coff_section_data (obfd, osec)->tdata = bfd_zalloc (obfd, amt); in _bfd_XX_bfd_copy_private_section_data() 2053 if (coff_section_data (obfd, osec)->tdata == NULL) in _bfd_XX_bfd_copy_private_section_data() 2057 pei_section_data (obfd, osec)->virt_size = in _bfd_XX_bfd_copy_private_section_data() 2059 pei_section_data (obfd, osec)->pe_flags = in _bfd_XX_bfd_copy_private_section_data()
|
| D | xcofflink.c | 4761 asection *osec; in xcoff_write_global_symbol() local 4769 osec = tocsec->output_section; in xcoff_write_global_symbol() 4770 oindx = osec->target_index; in xcoff_write_global_symbol() 4771 irel = finfo->section_info[oindx].relocs + osec->reloc_count; in xcoff_write_global_symbol() 4772 irel->r_vaddr = (osec->vma in xcoff_write_global_symbol() 4814 finfo->section_info[oindx].rel_hashes[osec->reloc_count] = NULL; in xcoff_write_global_symbol() 4815 ++osec->reloc_count; in xcoff_write_global_symbol() 4834 irsym.n_scnum = osec->target_index; in xcoff_write_global_symbol() 4882 asection *osec; in xcoff_write_global_symbol() local 4906 osec = sec->output_section; in xcoff_write_global_symbol() [all …]
|
| D | elf.c | 5984 asection *section, *osec; in copy_private_bfd_data() local 6012 osec = section->output_section; in copy_private_bfd_data() 6013 if (osec) in copy_private_bfd_data() 6014 osec->segment_mark = TRUE; in copy_private_bfd_data() 6022 if (osec == NULL in copy_private_bfd_data() 6023 || section->flags != osec->flags in copy_private_bfd_data() 6024 || section->lma != osec->lma in copy_private_bfd_data() 6025 || section->vma != osec->vma in copy_private_bfd_data() 6026 || section->size != osec->size in copy_private_bfd_data() 6027 || section->rawsize != osec->rawsize in copy_private_bfd_data() [all …]
|
| D | simple.c | 86 asection *osec ATTRIBUTE_UNUSED, in simple_dummy_multiple_definition()
|
| D | elf-bfd.h | 698 (bfd *output_bfd, struct bfd_link_info *info, asection *osec); 1002 asection *osec, bfd_vma offset, 1556 (bfd *abfd, struct bfd_link_info *info, asection *osec, bfd_vma offset,
|
| D | elf64-s390.c | 2616 asection *osec; local 2618 osec = sec->output_section; 2619 sindx = elf_section_data (osec)->dynindx; 2623 osec = htab->elf.text_index_section; 2624 sindx = elf_section_data (osec)->dynindx; 2633 outrel.r_addend -= osec->vma;
|
| D | elf32-s390.c | 2633 asection *osec; local 2635 osec = sec->output_section; 2636 sindx = elf_section_data (osec)->dynindx; 2639 osec = htab->elf.text_index_section; 2640 sindx = elf_section_data (osec)->dynindx; 2649 outrel.r_addend -= osec->vma;
|
| D | aout-target.h | 217 asection *osec ATTRIBUTE_UNUSED) in MY_bfd_copy_private_section_data()
|
| /freebsd-12-stable/contrib/gdb/include/ |
| D | bfdlink.h | 414 bfd *obfd, asection *osec, bfd_vma oval,
|
| /freebsd-12-stable/contrib/binutils/include/ |
| D | bfdlink.h | 482 bfd *obfd, asection *osec, bfd_vma oval,
|