Home
last modified time | relevance | path

Searched full:sections (Results 1 – 25 of 1815) sorted by relevance

12345678910>>...73

/freebsd/contrib/llvm-project/lld/ELF/
H A DICF.cpp10 // 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 DMarkLive.cpp9 // 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 DWriter.cpp109 // 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 DOutputSections.cpp81 // 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 DLinkerScript.cpp83 // 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 DPROTOCOL.krl5 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 Dllvm-objcopy.140 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 …]
/titanic_51/usr/src/man/man1/
H A Delfdump.145 the following types of sections:
77 Interpreter and global offset table sections do not have a special ELF section
78 type, but are instead implemented as \fBSHT_PROGBITS\fR sections with well
80 able to recognize and display these special sections.
83 Sections used for stack unwinding and exception handling can have the ELF
85 compiler and platform involved. These sections are recognized by name:
187 Qualifies the sections or program headers to examine with a specific index or
259 Dumps the contents of \fB\&.note\fR sections. By default, \fBelfdump\fR
274 Qualifies the sections or program headers to examine with a specific name. For
361 Dumps the contents of the \fB\&.rel\fR[\fBa\fR] relocation sections
[all...]
/freebsd/contrib/llvm-project/lld/docs/ELF/
H A Dlinker_script.rst39 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 Dlarge_sections.rst1 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 Dstart-stop-gc.rst4 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
/titanic_51/usr/src/man/man4/
H A Dnsmbrc.438 level specified is used. Sections are applied so that more specific sections
39 override less specific sections. Not all keywords are valid in all sections.
43 can include zero or more properties and associated values. The sections also
51 other sections unless specifically overridden.
59 \fBServer section.\fR Specifies the property values to be used by sections that
71 \fBUser section.\fR Specifies the property values to be used by sections that
83 \fBShare section.\fR Specifies the property values to be used by sections that
96 The following list describes the properties and states in which sections the
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicBlockSectionsProfileReader.h1 //===-- 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 DPartitions.rst42 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 Dld.lld.1149 .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 DOutputSection.h27 // 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 DOutputSegment.cpp55 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 Dfdl.texi69 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 DBasicBlockSections.cpp11 // 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 DObjcopyOpts.td35 : 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 …]
/titanic_51/usr/src/cmd/sgs/libld/common/
H A Dorder.c27 * Processing of SHF_ORDERED sections.
48 * SHN_BEFORE/SHN_AFTER - Sections are placed before/after all other
49 * sections, in the order they are encountered by the linker.
69 * (2) To optionally be sorted relative to other sorted sections,
77 * sections, all of which must have identical section header flags
79 * with a sh_link that points at itself. All input sections in this list
87 * already supports a more general feature for directing input sections
88 * to output sections: An input section named .text%foo will be sent to
89 * an output section named ".text", and this works for all sections,
94 * is added to the group of sorted sections
[all...]
H A Dplace.c102 * of otherwise unordered input sections, and False (0) otherwise.
125 * and insert it in the specified position. Ordered sections in os_attach_isp()
126 * are placed in ascending order before unordered sections in os_attach_isp()
127 * (sections with an is_ordndx value of zero). in os_attach_isp()
186 * replace the sections on this list. in os_attach_isp()
196 * Skip sections with (sh_entsize > 1) or (sh_addralign > 1). in os_attach_isp()
244 * Sections to which COMDAT groups apply are FLG_IS_COMDAT but are in add_comdat()
347 * GNU .gnu.linkonce sections follow a naming convention that indicates the
433 * The GNU link-editor maps sections generated by the GNU compiler separately
434 * due to -ffunction-sections,
[all...]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFI386.h80 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 DMachOReader.cpp64 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 DELFObject.cpp478 "--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 …]

12345678910>>...73