| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreTargetObjectFile.cpp | 24 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 27 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 30 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 33 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 36 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 40 ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::XCORE_SHF_DP_SECTION); in Initialize() 43 ELF::SHF_ALLOC | ELF::XCORE_SHF_CP_SECTION); in Initialize() 46 ELF::SHF_ALLOC | ELF::XCORE_SHF_CP_SECTION); in Initialize() 49 ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 4); in Initialize() 52 ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 8); in Initialize() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetObjectFile.cpp | 33 ".sdata", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC); in Initialize() 35 ELF::SHF_WRITE | ELF::SHF_ALLOC); in Initialize() 37 getContext().getELFSection(".srodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 39 ".srodata.cst4", ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_MERGE, 4); in Initialize() 41 ".srodata.cst8", ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_MERGE, 8); in Initialize() 43 ".srodata.cst16", ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_MERGE, 16); in Initialize() 45 ".srodata.cst32", ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_MERGE, 32); in Initialize() 119 ELF::SHF_WRITE | ELF::SHF_ALLOC); in SelectSectionForGlobal() 130 ELF::SHF_WRITE | ELF::SHF_ALLOC); in SelectSectionForGlobal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRTargetObjectFile.cpp | 24 Ctx.getELFSection(".progmem.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 26 Ctx.getELFSection(".progmem1.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 28 Ctx.getELFSection(".progmem2.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 30 Ctx.getELFSection(".progmem3.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 32 Ctx.getELFSection(".progmem4.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 34 Ctx.getELFSection(".progmem5.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTargetObjectFile.cpp | 118 ELF::SHF_WRITE | ELF::SHF_ALLOC | in Initialize() 122 ELF::SHF_WRITE | ELF::SHF_ALLOC | in Initialize() 182 ELF::SHF_ALLOC | ELF::SHF_EXECINSTR); in getExplicitSectionGlobal() 185 ELF::SHF_WRITE | ELF::SHF_ALLOC); in getExplicitSectionGlobal() 375 ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_HEX_GPREL); in selectSmallSectionForGlobal() 390 ELF::SHF_WRITE | ELF::SHF_ALLOC | in selectSmallSectionForGlobal() 419 ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_HEX_GPREL); in selectSmallSectionForGlobal()
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
| H A D | ELFAsmParser.cpp | 87 ELF::SHF_WRITE | ELF::SHF_ALLOC, in parseSectionDirectiveData() 93 ELF::SHF_ALLOC, SectionKind::getText()); in parseSectionDirectiveText() 98 ELF::SHF_ALLOC, SectionKind::getBSS()); in parseSectionDirectiveBSS() 102 ELF::SHF_ALLOC, in parseSectionDirectiveRoData() 107 ELF::SHF_ALLOC | in parseSectionDirectiveTData() 113 ELF::SHF_ALLOC | in parseSectionDirectiveTBSS() 273 flags |= ELF::SHF_ALLOC; in parseSectionFlags() 354 flags |= ELF::SHF_ALLOC; in parseSunStyleSectionFlags() 515 Flags |= ELF::SHF_ALLOC; in parseSectionArguments() 518 Flags |= ELF::SHF_ALLOC | ELF::SHF_EXECINSTR; in parseSectionArguments() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kTargetObjectFile.cpp | 44 ".sdata", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC); in Initialize() 47 ELF::SHF_WRITE | ELF::SHF_ALLOC); in Initialize()
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCObjectFileInfo.cpp | 386 unsigned EHSectionFlags = ELF::SHF_ALLOC; in initELFMCObjectFileInfo() 392 ELF::SHF_WRITE | ELF::SHF_ALLOC); in initELFMCObjectFileInfo() 395 ELF::SHF_EXECINSTR | ELF::SHF_ALLOC); in initELFMCObjectFileInfo() 398 ELF::SHF_WRITE | ELF::SHF_ALLOC); in initELFMCObjectFileInfo() 401 Ctx->getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in initELFMCObjectFileInfo() 405 ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE); in initELFMCObjectFileInfo() 408 ".tbss", ELF::SHT_NOBITS, ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE); in initELFMCObjectFileInfo() 411 ELF::SHF_ALLOC | ELF::SHF_WRITE); in initELFMCObjectFileInfo() 415 ELF::SHF_ALLOC | ELF::SHF_MERGE, 4); in initELFMCObjectFileInfo() 419 ELF::SHF_ALLOC | ELF::SHF_MERGE, 8); in initELFMCObjectFileInfo() [all …]
|
| H A D | MCSectionELF.cpp | 71 if (Flags & ELF::SHF_ALLOC) in printSwitchToSection() 86 if (Flags & ELF::SHF_ALLOC) in printSwitchToSection()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/ |
| H A D | BPFELFObjectWriter.cpp | 70 if ((Flags & ELF::SHF_ALLOC) && (Flags & ELF::SHF_EXECINSTR)) in getRelocType() 76 if ((Flags & ELF::SHF_ALLOC) && (Flags & ELF::SHF_WRITE)) in getRelocType()
|
| /freebsd/contrib/elftoolchain/libelf/ |
| H A D | libelf_chdr.c | 66 if ((sh32->sh_flags & SHF_ALLOC) != 0) { in _libelf_getchdr() 82 if ((sh64->sh_flags & SHF_ALLOC) != 0) { in _libelf_getchdr()
|
| H A D | libelf_checksum.c | 83 if ((shdr.sh_flags & SHF_ALLOC) == 0 || in _libelf_checksum()
|
| /freebsd/usr.sbin/btxld/ |
| H A D | elfh.c | 102 htole32(SHF_EXECINSTR | SHF_ALLOC), /* sh_flags */ 114 htole32(SHF_ALLOC | SHF_WRITE), /* sh_flags */
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/ |
| H A D | MipsOptionRecord.cpp | 37 ELF::SHF_ALLOC | ELF::SHF_MIPS_NOSTRIP, 1); in EmitMipsOptionRecord() 54 ELF::SHF_ALLOC, 24); in EmitMipsOptionRecord()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiTargetObjectFile.cpp | 30 ".sdata", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC); in Initialize() 32 ELF::SHF_WRITE | ELF::SHF_ALLOC); in Initialize()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/ |
| H A D | XtensaTargetStreamer.cpp | 92 SectionName, ELF::SHT_PROGBITS, ELF::SHF_EXECINSTR | ELF::SHF_ALLOC); in emitLiteral() 112 SectionName, ELF::SHT_PROGBITS, ELF::SHF_EXECINSTR | ELF::SHF_ALLOC); in startLiteralSection()
|
| /freebsd/contrib/elftoolchain/elfcopy/ |
| H A D | binary.c | 77 if ((sh.sh_flags & SHF_ALLOC) == 0 || in create_binary() 103 if ((sh.sh_flags & SHF_ALLOC) == 0 || in create_binary() 205 off, SHT_PROGBITS, ELF_T_BYTE, SHF_ALLOC | SHF_WRITE, 1, 0, 1); in create_elf_from_binary()
|
| H A D | pe.c | 156 else if (sh.sh_flags & SHF_ALLOC) in create_pe() 194 if ((sh.sh_flags & SHF_ALLOC) && (psh.sh_char & 0xF0) == 0) in create_pe()
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObjcopy.cpp | 70 NewFlags |= ELF::SHF_ALLOC; in getNewShfFlags() 124 (!(Sec.Flags & ELF::SHF_ALLOC) || in setSectionFlagsAndType() 226 if (!(Sec.Flags & SHF_ALLOC) && StringRef(Sec.Name).starts_with(".debug")) { in compressOrDecompressSections() 437 if ((Sec.Flags & SHF_ALLOC) != 0) in replaceAndRemoveSections() 469 return (Sec.Flags & SHF_ALLOC) == 0 && Sec.ParentSegment == nullptr; in replaceAndRemoveSections() 490 return (Sec.Flags & SHF_ALLOC) == 0; in replaceAndRemoveSections() 499 return (Sec.Flags & SHF_ALLOC) != 0 && !Sec.ParentSegment; in replaceAndRemoveSections() 902 if (Sec.Flags & SHF_ALLOC && Sec.Type != SHT_NOTE) in handleArgs() 980 } else if (RelocSec && !(Sec.Flags & SHF_ALLOC)) in handleArgs() 1004 if (Sec.Flags & SHF_ALLOC) { in handleArgs() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsTargetObjectFile.cpp | 49 ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_MIPS_GPREL); in Initialize() 52 ELF::SHF_WRITE | ELF::SHF_ALLOC | in Initialize()
|
| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | SyntheticSections.cpp | 99 : SyntheticSection(ctx, ".MIPS.abiflags", SHT_MIPS_ABIFLAGS, SHF_ALLOC, 8), in MipsAbiFlagsSection() 160 : SyntheticSection(ctx, ".MIPS.options", SHT_MIPS_OPTIONS, SHF_ALLOC, 8), in MipsOptionsSection() 222 : SyntheticSection(ctx, ".reginfo", SHT_MIPS_REGINFO, SHF_ALLOC, 4), in MipsReginfoSection() 271 SHF_ALLOC, in createInterpSection() 321 : SyntheticSection(ctx, ".note.gnu.property", SHT_NOTE, SHF_ALLOC, in GnuPropertySection() 376 : SyntheticSection(ctx, ".note.gnu.build-id", SHT_NOTE, SHF_ALLOC, 4), in BuildIdSection() 394 : SyntheticSection(ctx, name, SHT_NOBITS, SHF_ALLOC | SHF_WRITE, in BssSection() 401 : SyntheticSection(ctx, ".eh_frame", SHT_PROGBITS, SHF_ALLOC, 1) {} in EhFrameSection() 672 : SyntheticSection(ctx, ".got", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE, in GotSection() 782 SHF_ALLOC | SHF_WRITE | SHF_MIPS_GPREL, 16) {} in MipsGotSection() [all …]
|
| H A D | Writer.cpp | 130 if (!(s->flags & SHF_ALLOC) || !s->isLive() || s->type != SHT_NOTE) in copySectionsIntoPartitions() 575 if (!(flags & SHF_ALLOC) || !(flags & SHF_WRITE)) in isRelroSection() 678 if (!(osec.flags & SHF_ALLOC)) in getSectionRank() 972 if (!(sec->flags & SHF_ALLOC)) in findOrphanPos() 1635 if (osec->addr < imageBase && (osec->flags & SHF_ALLOC)) { in finalizeAddressDependentContent() 2005 if (!ctx.in.shStrTab && !(osec->flags & SHF_ALLOC)) in finalizeSections() 2285 if (!(sec->flags & SHF_ALLOC)) in needsPtLoad() 2503 if (sec->type == SHT_NOTE && (sec->flags & SHF_ALLOC)) { in createPhdrs() 2625 return sec.type != SHT_NOBITS && (sec.flags & SHF_ALLOC) && sec.size > 0; in assignFileOffsetsBinary() 2661 if (!(sec->flags & SHF_ALLOC)) in assignFileOffsets() [all …]
|
| H A D | LinkerScript.cpp | 859 aether = std::make_unique<OutputSection>(ctx, "", 0, SHF_ALLOC); in processSymbolAssignments() 1109 if (!(sec->flags & SHF_ALLOC)) { in findMemoryRegion() 1173 if (!(sec->flags & SHF_ALLOC)) { in assignOffsets() 1285 if (!(sec->flags & SHF_ALLOC)) { in assignOffsets() 1329 if (sec.flags & SHF_ALLOC) in maybePropagatePhdrs() 1359 uint64_t flags = SHF_ALLOC; in adjustOutputSections() 1385 flags & ((sec->nonAlloc ? 0 : (uint64_t)SHF_ALLOC) | SHF_WRITE); in adjustOutputSections() 1473 if (sec->flags & SHF_ALLOC) in allocateHeaders()
|
| H A D | OutputSections.cpp | 177 flags &= ~(uint64_t)SHF_ALLOC; in commitSection() 377 if (!(flags & SHF_ALLOC) && ctx.arg.compressDebugSections && in maybeCompress() 385 if (flags & SHF_ALLOC) { in maybeCompress() 501 if (type == SHT_CREL && !(flags & SHF_ALLOC)) { in writeTo() 541 if (type == SHT_CREL && !(flags & SHF_ALLOC)) { in writeTo()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | TargetLoweringObjectFileImpl.cpp | 358 auto *S = C.getELFSection(Section, ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in emitModuleMetadata() 410 unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_GROUP; in emitPersonalityValue() 533 Flags |= ELF::SHF_ALLOC; in getELFSectionFlags() 988 ELF::SHF_ALLOC, &NextUniqueID, in getSectionForJumpTable() 1066 ELF::SHF_ALLOC | ELF::SHF_MERGE, 4); in getSectionForConstant() 1070 ELF::SHF_ALLOC | ELF::SHF_MERGE, 8); in getSectionForConstant() 1074 ELF::SHF_ALLOC | ELF::SHF_MERGE, 16); in getSectionForConstant() 1078 ELF::SHF_ALLOC | ELF::SHF_MERGE, 32); in getSectionForConstant() 1081 ELF::SHF_ALLOC); in getSectionForConstant() 1086 ELF::SHF_ALLOC | ELF::SHF_WRITE); in getSectionForConstant() [all …]
|
| /freebsd/sys/cddl/contrib/opensolaris/uts/common/ctf/ |
| H A D | ctf_mod.c | 131 ctfsect.cts_flags = SHF_ALLOC; in ctf_modopen()
|