We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ae323 commit fb40a61Copy full SHA for fb40a61
lld/docs/ELF/linker_script.rst
@@ -94,6 +94,15 @@ The presence of ``address`` can cause the condition unsatisfied. LLD will warn.
94
GNU ld from Binutils 2.35 onwards will reduce sh_addralign so that
95
sh_addr=0 (modulo sh_addralign).
96
97
+Output section type
98
+-------------------
99
+
100
+When an *OutputSection* *S* has ``(type)``, LLD will set ``sh_type`` or
101
+``sh_flags`` of *S*. ``type`` is one of:
102
103
+- ``NOLOAD``: set ``sh_type`` to ``SHT_NOBITS``.
104
+- ``COPY``, ``INFO``, ``OVERLAY``: clear the ``SHF_ALLOC`` bit in ``sh_flags``.
105
106
Output section alignment
107
------------------------
108
0 commit comments