/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/AVR/ |
H A D | AVRTargetObjectFile.cpp | 25 Ctx.getELFSection(".progmem.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 27 Ctx.getELFSection(".progmem1.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 29 Ctx.getELFSection(".progmem2.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 31 Ctx.getELFSection(".progmem3.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 33 Ctx.getELFSection(".progmem4.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize() 35 Ctx.getELFSection(".progmem5.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in Initialize()
|
/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()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | ELFAsmParser.cpp | 93 ELF::SHF_WRITE | ELF::SHF_ALLOC, in ParseSectionDirectiveData() 99 ELF::SHF_ALLOC, SectionKind::getText()); in ParseSectionDirectiveText() 104 ELF::SHF_ALLOC, SectionKind::getBSS()); in ParseSectionDirectiveBSS() 108 ELF::SHF_ALLOC, in ParseSectionDirectiveRoData() 113 ELF::SHF_ALLOC | in ParseSectionDirectiveTData() 119 ELF::SHF_ALLOC | in ParseSectionDirectiveTBSS() 125 ELF::SHF_ALLOC | ELF::SHF_WRITE, in ParseSectionDirectiveDataRel() 130 ELF::SHF_ALLOC | in ParseSectionDirectiveDataRelRo() 136 ELF::SHF_ALLOC | ELF::SHF_WRITE, in ParseSectionDirectiveEhFrame() 297 flags |= ELF::SHF_ALLOC; in parseSectionFlags() [all …]
|
/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() 376 ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_HEX_GPREL); in selectSmallSectionForGlobal() 391 ELF::SHF_WRITE | ELF::SHF_ALLOC | in selectSmallSectionForGlobal() 420 ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_HEX_GPREL); in selectSmallSectionForGlobal()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCObjectFileInfo.cpp | 385 unsigned EHSectionFlags = ELF::SHF_ALLOC; in initELFMCObjectFileInfo() 391 ELF::SHF_WRITE | ELF::SHF_ALLOC); in initELFMCObjectFileInfo() 394 ELF::SHF_EXECINSTR | ELF::SHF_ALLOC); in initELFMCObjectFileInfo() 397 ELF::SHF_WRITE | ELF::SHF_ALLOC); in initELFMCObjectFileInfo() 400 Ctx->getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC); in initELFMCObjectFileInfo() 404 ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE); in initELFMCObjectFileInfo() 407 ".tbss", ELF::SHT_NOBITS, ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE); in initELFMCObjectFileInfo() 410 ELF::SHF_ALLOC | ELF::SHF_WRITE); in initELFMCObjectFileInfo() 414 ELF::SHF_ALLOC | ELF::SHF_MERGE, 4); in initELFMCObjectFileInfo() 418 ELF::SHF_ALLOC | ELF::SHF_MERGE, 8); in initELFMCObjectFileInfo() [all …]
|
H A D | MCSectionELF.cpp | 70 if (Flags & ELF::SHF_ALLOC) in printSwitchToSection() 85 if (Flags & ELF::SHF_ALLOC) in printSwitchToSection()
|
/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/Target/BPF/MCTargetDesc/ |
H A D | BPFELFObjectWriter.cpp | 71 if ((Flags & ELF::SHF_ALLOC) && (Flags & ELF::SHF_EXECINSTR)) in getRelocType() 77 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/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
H A D | ELFObjcopy.cpp | 75 NewFlags |= ELF::SHF_ALLOC; in getNewShfFlags() 129 (!(Sec.Flags & ELF::SHF_ALLOC) || in setSectionFlagsAndType() 230 if (!(Sec.Flags & SHF_ALLOC) && StringRef(Sec.Name).starts_with(".debug")) { in compressOrDecompressSections() 441 if ((Sec.Flags & SHF_ALLOC) != 0) in replaceAndRemoveSections() 473 return (Sec.Flags & SHF_ALLOC) == 0 && Sec.ParentSegment == nullptr; in replaceAndRemoveSections() 494 return (Sec.Flags & SHF_ALLOC) == 0; in replaceAndRemoveSections() 503 return (Sec.Flags & SHF_ALLOC) != 0 && !Sec.ParentSegment; in replaceAndRemoveSections() 750 if (Sec.Flags & SHF_ALLOC && Sec.Type != SHT_NOTE) in handleArgs() 822 } else if (RelocSec && !(Sec.Flags & SHF_ALLOC)) in handleArgs() 846 if (Sec.Flags & SHF_ALLOC) { in handleArgs() [all …]
|
/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 | 33 ".sdata", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC); in Initialize() 35 ELF::SHF_WRITE | ELF::SHF_ALLOC); in Initialize()
|
/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/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/llvm-project/lld/ELF/ |
H A D | SyntheticSections.cpp | 100 : SyntheticSection(SHF_ALLOC, SHT_MIPS_ABIFLAGS, 8, ".MIPS.abiflags"), in MipsAbiFlagsSection() 160 : SyntheticSection(SHF_ALLOC, SHT_MIPS_OPTIONS, 8, ".MIPS.options"), in MipsOptionsSection() 221 : SyntheticSection(SHF_ALLOC, SHT_MIPS_REGINFO, 4, ".reginfo"), in MipsReginfoSection() 268 return make<InputSection>(ctx.internalFile, SHF_ALLOC, SHT_PROGBITS, 1, in createInterpSection() 317 : SyntheticSection(llvm::ELF::SHF_ALLOC, llvm::ELF::SHT_NOTE, in GnuPropertySection() 359 : SyntheticSection(SHF_ALLOC, SHT_NOTE, 4, ".note.gnu.build-id"), in BuildIdSection() 376 : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_NOBITS, alignment, name) { in BssSection() 382 : SyntheticSection(SHF_ALLOC, SHT_PROGBITS, 1, ".eh_frame") {} in EhFrameSection() 651 : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS, in GotSection() 734 : SyntheticSection(SHF_ALLOC | SHF_WRITE | SHF_MIPS_GPREL, SHT_PROGBITS, 16, in MipsGotSection() [all …]
|
H A D | Writer.cpp | 123 if (!(s->flags & SHF_ALLOC) || !s->isLive() || s->type != SHT_NOTE) in copySectionsIntoPartitions() 557 if (!(flags & SHF_ALLOC) || !(flags & SHF_WRITE)) in isRelroSection() 658 if (!(osec.flags & SHF_ALLOC)) in getSectionRank() 940 if (!(sec->flags & SHF_ALLOC)) in findOrphanPos() 2134 if (!(sec->flags & SHF_ALLOC)) in needsPtLoad() 2340 if (sec->type == SHT_NOTE && (sec->flags & SHF_ALLOC)) { in createPhdrs() 2463 return sec.type != SHT_NOBITS && (sec.flags & SHF_ALLOC) && sec.size > 0; in assignFileOffsetsBinary() 2499 if (!(sec->flags & SHF_ALLOC)) in assignFileOffsets() 2514 if (osec->flags & SHF_ALLOC) in assignFileOffsets() 2645 (!config->oFormatBinary || (sec->flags & SHF_ALLOC))) in checkSections() [all …]
|
H A D | LinkerScript.cpp | 736 aether = make<OutputSection>("", 0, SHF_ALLOC); in processSymbolAssignments() 979 if (!(sec->flags & SHF_ALLOC)) { in findMemoryRegion() 1040 if (!(sec->flags & SHF_ALLOC)) { in assignOffsets() 1150 if (!(sec->flags & SHF_ALLOC)) { in assignOffsets() 1194 if (sec.flags & SHF_ALLOC) in maybePropagatePhdrs() 1224 uint64_t flags = SHF_ALLOC; in adjustOutputSections() 1250 flags & ((sec->nonAlloc ? 0 : (uint64_t)SHF_ALLOC) | SHF_WRITE); in adjustOutputSections() 1344 if (sec->flags & SHF_ALLOC) in allocateHeaders()
|
H A D | OutputSections.cpp | 173 flags &= ~(uint64_t)SHF_ALLOC; in commitSection() 360 if (!(flags & SHF_ALLOC) && config->compressDebugSections && in maybeCompress() 368 if (flags & SHF_ALLOC) { in maybeCompress() 484 if (type == SHT_CREL && !(flags & SHF_ALLOC)) { in writeTo() 524 if (type == SHT_CREL && !(flags & SHF_ALLOC)) { in writeTo()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsTargetObjectFile.cpp | 50 ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_MIPS_GPREL); in Initialize() 53 ELF::SHF_WRITE | ELF::SHF_ALLOC | in Initialize()
|
/freebsd/sys/cddl/contrib/opensolaris/uts/common/ctf/ |
H A D | ctf_mod.c | 131 ctfsect.cts_flags = SHF_ALLOC; in ctf_modopen()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64TargetStreamer.cpp | 78 ELF::SHF_ALLOC); in emitNoteSection()
|