Lines Matching +full:docs +full:- +full:lld +full:- +full:html
4 LLD implements a large subset of the GNU ld linker script notation. The LLD
6 documented in the ld `manual <https://sourceware.org/binutils/docs/ld/Scripts.html>`_
7 We consider it a bug if the lld implementation does not agree with the manual
14 The lld implementation policy for properties of linker scripts that are not
17 it is appropriate for LLD. Intentional deviations will be documented in this
47 section-command
48 section-command
52 Each section-command can be a symbol assignment, an output section description,
61 command is followed by ``INSERT``, LLD applies built-in rules which are similar
64 - Align the first section in a ``PT_LOAD`` segment according to
65 ``-z noseparate-code``, ``-z separate-code``, or
66 ``-z separate-loadable-segments``
67 - Define ``__bss_start``, ``end``, ``_end``, ``etext``, ``_etext``, ``edata``,
69 - Sort ``.ctors.*``/``.dtors.*``/``.init_array.*``/``.fini_array.*`` and
71 - Place input ``.text.*`` into output ``.text``, and handle certain variants
73 presence of ``-z keep-text-section-prefix``.
83 output-section-command
88 ----------------------
90 When an *OutputSection* *S* has ``address``, LLD will set sh_addr to ``address``.
96 The presence of ``address`` can cause the condition unsatisfied. LLD will warn.
101 only contains symbol assignments (e.g. ``.foo { symbol = 42; }``). LLD will
106 GNU ld sets the ``SHF_WRITE`` flag. LLD sets the SHF_WRITE flag only if the
107 preceding output section with non-empty input sections also has the SHF_WRITE
111 -------------------
113 When an *OutputSection* *S* has ``(type)``, LLD will set ``sh_type`` or
116 - ``NOLOAD``: set ``sh_type`` to ``SHT_NOBITS``.
117 - ``COPY``, ``INFO``, ``OVERLAY``: clear the ``SHF_ALLOC`` bit in ``sh_flags``.
118 - ``TYPE=<value>``: set ``sh_type`` to the specified value. ``<value>`` must be
126 ------------------------
136 ------------------
140 - ``AT(lma)`` specifies the exact load address. If the linker script does not
142 - ``AT>lma_region`` specifies the LMA region. The lack of ``AT>lma_region``
154 - If the previous section is also in the default LMA region, and the two
157 - Otherwise, the LMA is set to the VMA.
167 output-section-description
168 output-section-description
173 section order or suppress the built-in rules.
186 Built-in functions
190 segment when ``-z relro`` (default) is in effect. Sections between
194 writable but non-RELRO sections. LLD ignores ``offset`` and ``exp`` and aligns
195 the current location to a max-page-size boundary, ensuring that the next
198 LLD will insert ``.relro_padding`` immediately before the symbol assignment
211 input-section-description
212 input-section-description
239 Non-contiguous regions
242 The flag ``--enable-non-contiguous-regions`` provides a version of the above
245 of patterns.) Unlike GNU ld, ``/DISCARD/`` only matches previously-unmatched
248 Accordingly, the GNU flag ``--enable-non-contiguous-regions-warnings`` is not