/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | ICF.cpp | 10 // identify and merge two or more read-only sections (typically functions) 14 // In ICF, two sections are considered identical if they have the same 17 // relocation types, values, and if they point to the same sections *in 31 // What we are doing in LLD is to partition sections into equivalence 32 // classes. Sections in the same equivalence class when the algorithm 35 // 1. First, we partition sections using their hash values as keys. Hash 38 // account. We just put sections that apparently differ into different 41 // 2. Next, for each equivalence class, we visit sections to compare 43 // their targets are in the same equivalence class. Sections with 53 // merge all the other sections in C with it. [all …]
|
H A D | MarkLive.cpp | 9 // This file implements --gc-sections, which is a feature to remove unused 10 // sections from output. Unused sections are sections that are not reachable 11 // from known GC-root symbols or sections. Naturally the feature is 15 // by default. Starting with GC-root symbols or sections, markLive function 16 // defined in this file visits all reachable sections to set their Live 17 // bits. Writer will then ignore sections whose Live bits are off, so that 18 // such sections are not included into output. 66 // A list of sections to visit. 69 // There are normally few input sections whose names are valid C 115 // executable sections. If the LSDA is in a section group or has the in resolveReloc() [all …]
|
H A D | OutputSections.cpp | 81 // We allow sections of types listed below to merged into a 84 // to be allocated for nobits sections. Other ones don't require 88 // NOTE: clang since rL252300 emits SHT_X86_64_UNWIND .eh_frame sections. Allow 103 // 2. Add the InputSection to the InputSectionDescription::sections. 194 // InputSectionDescription::sections. 197 // new synthetic sections at the location of the first input section 206 isd->sections.reserve(isd->sectionBases.size()); in finalizeInputSections() 210 isd->sections.push_back(cast<InputSection>(s)); in finalizeInputSections() 214 // We do not want to handle sections that are not alive, so just remove in finalizeInputSections() 224 // could be equal, so we may as well have two sections. in finalizeInputSections() [all …]
|
H A D | Writer.cpp | 109 // Clear OutputSection::ptLoad for sections contained in removed in removeEmptyPTLoad() 192 // combines the typical ELF GOT with the small data sections. It commonly in addReservedSymbols() 270 // In addition, demote symbols defined in discarded sections, so that 305 // Now that we have a complete set of output sections. This function in run() 312 // If --compressed-debug-sections is specified, compress .debug_* sections. in run() 313 // Do it right now because it changes the size of output sections. in run() 322 // we know the size of the sections. in run() 394 // With --gc-sections, the field is already filled. in markUsedLocalSymbols() 426 // from live sections. in shouldKeepInSymtab() 430 // Exclude local symbols pointing to .ARM.exidx sections. in shouldKeepInSymtab() [all …]
|
H A D | LinkerScript.cpp | 83 // When no SECTIONS is specified, emulate GNU ld's internal linker scripts in getOutputSectionName() 84 // by grouping sections with certain prefixes. in getOutputSectionName() 86 // GNU ld places text sections with prefix ".text.hot.", ".text.unknown.", in getOutputSectionName() 88 // We provide an option -z keep-text-section-prefix to group such sections in getOutputSectionName() 89 // into separate output sections. This is more flexible. See also in getOutputSectionName() 96 // input sections. For example, with -fsplit-machine-functions, placing the in getOutputSectionName() 313 // adjustOutputSections(). We do not handle such output sections. in processInsertCommands() 354 // Skip such sections for now. Improve the checks if we ever in declareSymbols() 355 // need symbols from that sections to be declared early. in declareSymbols() 424 static bool matchConstraints(ArrayRef<InputSectionBase *> sections, in matchConstraints() argument [all …]
|
/freebsd/crypto/openssh/ |
H A D | PROTOCOL.krl | 5 The KRL consists of a header and zero or more sections. The header is: 24 Following the header are zero or more sections, each consisting of: 44 These sections use type KRL_SECTION_CERTIFICATES to revoke certificates by 57 Followed by one or more sections: 83 These sections use type KRL_SECTION_CERT_SERIAL_RANGE and hold 96 Bitmap sections use type KRL_SECTION_CERT_SERIAL_BITMAP and revoke keys 107 2.4. Revoked key ID sections 109 KRL_SECTION_CERT_KEY_ID sections revoke particular certificate "key 142 3. Explicit key sections 144 These sections, identified as KRL_SECTION_EXPLICIT_KEY, revoke keys [all …]
|
/freebsd/usr.bin/clang/llvm-objcopy/ |
H A D | llvm-objcopy.1 | 40 specified, the output may be modified along the way, e.g. by removing sections. 67 specified multiple times to add multiple sections. 88 ELF objects will not be discarded. Additionally, remove all debug sections. 94 specified multiple times to dump multiple sections to different files. 97 operations will still be performed. No operations are performed on the sections 117 Produce a debug file as the output that only preserves contents of sections 120 For ELF objects, this removes the contents of \fISHF_ALLOC\fP sections that are not 127 Remove all sections from the output, except for sections named \fB<section>\fP\&. 128 Can be specified multiple times to keep multiple sections. 158 to remove multiple sections simultaneously. [all …]
|
/freebsd/contrib/llvm-project/lld/docs/ELF/ |
H A D | linker_script.rst | 39 SECTIONS command 42 A ``SECTIONS`` command looks like: 46 SECTIONS { 55 When the ``INSERT`` keyword is present, the ``SECTIONS`` command describes some 56 output sections which should be inserted after or before the specified anchor 57 section. The insertion occurs after input sections have been mapped to output 58 sections but before orphan sections have been processed. 60 In the case where no linker script has been provided or every ``SECTIONS`` 102 retain such sections unless all the symbol assignments are unreferenced 107 preceding output section with non-empty input sections also has the SHF_WRITE [all …]
|
H A D | large_sections.rst | 1 Large data sections 16 lld normally lays out sections as follows: 29 Large globals are placed in separate sections from small globals, and those 30 sections have a "large" section flag, e.g. ``SHF_X86_64_LARGE`` for x86-64. The 31 linker places large sections on the outer edges of the binary, making sure they 39 large sections next to the small sections with the same RWX permissions when 48 non-PIC code, large sections should be placed after all small sections to avoid
|
H A D | start-stop-gc.rst | 4 If your ``-Wl,--gc-sections`` build fail with a linker error like this: 8 …>>> the encapsulation symbol needs to be retained under --gc-sections properly; consider -z nostar… 10 it is likely your C identifier name sections are not properly annotated to 11 suffice under ``--gc-sections``. 15 reference from a live section retain all ``meta`` input sections. This 27 Annotate C identifier name sections 53 linker ``--gc-sections``. 64 If you use the ``SECTIONS`` command in a linker script, use
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicBlockSectionsProfileReader.h | 1 //===-- BasicBlockSectionsProfileReader.h - BB sections profile reader pass ==// 10 // sections profile. The cluster info will be used by the basic-block-sections 11 // pass to arrange basic blocks in their sections. 86 // Returns true if basic block sections profile exist for function \p 90 // Returns a pair with first element representing whether basic block sections 92 // representing the basic block sections profile (cluster info) for this 94 // means unique basic block sections are desired for all basic blocks of the 123 // Reads the basic block sections profile for functions in this module. 133 // This contains the basic-block-sections profil [all...] |
/freebsd/contrib/llvm-project/lld/docs/ |
H A D | Partitions.rst | 42 into partitions according to which sections of the program are reachable from 43 which entry points, similarly to how ``--gc-sections`` removes unused parts of 44 a program. Any sections that are only reachable from a loadable partition's 45 entry point are assigned to that partition, while all other sections are 46 assigned to the main partition, including sections only reachable from 49 The following diagram illustrates how sections are assigned to partitions. Each 65 clang -ffunction-sections -fdata-sections -c main.c 69 clang -ffunction-sections -fdata-sections -fsymbol-partition=libfeature.so -c feature.c 72 …ng main.o feature.o -fuse-ld=lld -shared -o libcombined.so -Wl,-soname,libmain.so -Wl,--gc-sections 106 ``SECTIONS`` or ``PHDRS`` linker script features, nor may it be used with the [all …]
|
H A D | ld.lld.1 | 149 .It Fl -compress-debug-sections Ns = Ns Ar value 150 Compress DWARF debug sections. 151 The sections remain uncompressed if compressed content would be larger. 165 .It Fl -compress-sections Ns = Ns Ar section-glob={none,zlib,zstd}[:level] 166 Compress output sections that match the glob and do not have the SHF_ALLOC flag. 167 The matched sections remain uncompressed if compressed content would be larger. 172 .Cm --compress-debug-sections. 228 Spill input sections to later matching output sections to avoid memory region overflow. 253 Mark executable sections unreadable. 294 .It Fl -gc-sections [all …]
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | OutputSection.h | 27 // not to conflict with the ordering of zerofill sections, which must always be 31 // Output sections represent the finalized sections present within the final 32 // linked executable. They can represent special sections (like the symbol 33 // table), or represent coalesced sections from the various inputs given to the 51 // How much space the section occupies in the file. Most sections are copied 55 // Hidden sections omit header content, but body content may still be present. 57 // Unneeded sections are omitted entirely (header and body). 63 // assigned to output sections that occur earlier in the output binary. 64 // Naturally, this means different sections' finalize() methods cannot execute 83 // For output sections that don't have explicit ordering requirements, their [all …]
|
H A D | OutputSegment.cpp | 55 for (const OutputSection *osec : sections) in numNonHiddenSections() 64 sections.push_back(osec); in addOutputSection() 83 // sections must be ordered after other sections). in segmentOrder() 90 // Sections are uniquely identified by their segment + section name. in sectionOrder() 106 // the end of the last one. We therefore arrange these sections contiguously in sectionOrder() 108 // sections must be at the end of their segments, and since TLV data in sectionOrder() 109 // sections can be zerofills, we end up putting all TLV data sections at the in sectionOrder() 143 // ZeroFill sections must always be the at the end of their segments: in sectionOrder() 145 // size to detect if a segment has zerofill sections, and if so it maps in sectionOrder() 153 // Must be stable_sort() to keep special sections such as in sortOutputSections() [all …]
|
/freebsd/contrib/diff/doc/ |
H A D | fdl.texi | 69 The ``Invariant Sections'' are certain Secondary Sections whose titles 70 are designated, as being those of Invariant Sections, in the notice 74 Invariant Sections. If the Document does not identify any Invariant 75 Sections then there are none. 188 the conditions of sections 2 and 3 above, provided that you release 226 Preserve in that license notice the full lists of Invariant Sections 257 Preserve all the Invariant Sections of the Document, 273 If the Modified Version includes new front-matter sections or 274 appendices that qualify as Secondary Sections and contain no material 276 of these sections as invariant. To do this, add their titles to the [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | BasicBlockSections.cpp | 11 // The purpose of this pass is to assign sections to basic blocks when 12 // -fbasic-block-sections= option is used. Further, with profile information 13 // only the subset of basic blocks with profiles are placed in separate sections 17 // Basic Block Sections 20 // With option, -fbasic-block-sections=list, every function may be split into 25 // allow the linker to reorder the sections in any arbitrary sequence. A global 26 // order of these sections would encapsulate the function layout. 55 // needs special handling with basic block sections. DebugInfo needs to be 56 // emitted with more relocations as basic block sections can break a 113 return "Basic Block Sections Analysis"; in getPassName() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-objcopy/ |
H A D | ObjcopyOpts.td | 35 : Joined<["--"], "compress-debug-sections=">, 37 HelpText<"Compress DWARF debug sections using specified format. Supported " 39 def : Flag<["--"], "compress-debug-sections">, Alias<compress_debug_sections>, 41 def decompress_debug_sections : Flag<["--"], "decompress-debug-sections">, 42 HelpText<"Decompress DWARF debug sections">; 44 : Eq<"compress-sections", 45 "Compress or decompress sections using specified format. Supported " 60 "Rename sections called <old> to <new>, and apply any specified <flag> values. " 117 HelpText<"Remove all DWARF .dwo sections">; 120 HelpText<"Remove all non-allocated sections that are not within segments">; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
H A D | RuntimeDyldCOFFI386.h | 80 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 143 const auto Section = Sections[RE.SectionID]; in resolveRelocation() 153 RE.Sections.SectionA == static_cast<uint32_t>(-1) in resolveRelocation() 155 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset( in resolveRelocation() 160 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation() 170 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation() 171 Sections[0].getLoadAddress(); in resolveRelocation() 175 << " TargetSection: " << RE.Sections in resolveRelocation() [all...] |
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/ |
H A D | MachOReader.cpp | 64 std::vector<std::unique_ptr<Section>> Sections; in extractSections() 77 Sections.push_back( in extractSections() 80 Section &S = *Sections.back(); in extractSections() 115 return std::move(Sections); 119 // For MachO sections indices start from 1. in readLoadCommands() 137 if (Expected<std::vector<std::unique_ptr<Section>>> Sections = in readLoadCommands() 140 LC.Sections = std::move(*Sections); in readLoadCommands() 142 return Sections.takeError(); in readLoadCommands() 153 if (Expected<std::vector<std::unique_ptr<Section>>> Sections in readLoadCommands() 63 std::vector<std::unique_ptr<Section>> Sections; extractSections() local 135 if (Expected<std::vector<std::unique_ptr<Section>>> Sections = readLoadCommands() local 151 if (Expected<std::vector<std::unique_ptr<Section>>> Sections = readLoadCommands() local 247 std::vector<const Section *> Sections; setSymbolInRelocationInfo() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
H A D | ELFObject.cpp | 478 "--decompress-debug-sections: ch_type (" + in visit() 820 // layout sections correctly. We will fill the table with correct in prepareForLayout() 1061 // sections we also remove their relocation sections. Since we do that much in removeSectionReferences() 1169 // For sections not found in segments, OriginalOffset is only used to in init() 1170 // establish the order that sections should go in. By using the maximum in init() 1226 // Ignore just added sections. in sectionWithinSegment() 1306 for (SectionBase &Sec : Obj->sections()) in initSections() 1307 if (Error Err = Sec.initialize(Obj->sections())) in initSections() 1350 // Adds sections from IHEX data file. Data should have been 1366 // OriginalOffset field is only used to sort sections before layout, so in addDataSections() [all …]
|
/freebsd/share/misc/ |
H A D | mdoc.template | 9 .\" This next request is for sections 2 and 3 only. 15 .\" This next request is for sections 2, 3 and 9 function return values only. 17 .\" This next request is for sections 1, 6, 7 and 8 only. 20 .\" This next request is for sections 1, 6, 7 and 8 only 24 .\" This next request is for sections 1, 6, 7, 8 and 9 only 28 .\" This next request is for sections 2, 3 and 9 error and signal handling only.
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/wasm/ |
H A D | WasmReader.cpp | 21 std::vector<Section> Sections; in create() local 22 Obj->Sections.reserve(WasmObj.getNumSections()); in create() 23 for (const SectionRef &Sec : WasmObj.sections()) { in create() 25 Obj->Sections.push_back({static_cast<uint8_t>(WS.Type), in create() 27 // Give known sections standard names to allow them to be selected. (Custom in create() 28 // sections already have their names filled in by the parser). in create() 29 Section &ReaderSec = Obj->Sections.back(); in create()
|
/freebsd/contrib/llvm-project/lld/COFF/ |
H A D | ICF.cpp | 10 // identify and merge two or more read-only sections (typically functions) 77 // merge read-only sections in a couple of cases where the address of the 86 // Under regular (not safe) ICF, all code sections are eligible. in isEligible() 91 // .pdata and .xdata unwind info sections are eligible. in isEligible() 133 // Returns true if two sections' associative children are equal. 135 // Ignore associated metadata sections that don't participate in ICF, such as in assocEquals() 150 // Compare "non-moving" part of two sections, namely everything 184 // Compare "moving" part of two sections, namely relocation targets. 230 // If the number of sections are too small to use threading, in forEachClass() 258 // Merge identical COMDAT sections. [all …]
|
H A D | CallGraphSort.cpp | 58 std::vector<const SectionChunk *> sections; member in __anone43d6a6e0111::CallGraphSort 83 sections.push_back(isec); in CallGraphSort() 95 // Ignore edges between input sections belonging to different output in CallGraphSort() 96 // sections. This is done because otherwise we would end up with clusters in CallGraphSort() 97 // containing input sections that can't actually be placed adjacently in the in CallGraphSort() 99 // would also end up moving input sections in other output sections without in CallGraphSort() 199 // Sections will be sorted by increasing order. Absent sections will have in run() 200 // priority 0 and be placed at the end of sections. in run() 204 orderMap[sections[i]] = curOrder++; in run() 221 const SectionChunk *sc = sections[i]; in run() [all …]
|