title: How can I add attributes to a section in a GNU linker script?
body: <p>I'm doing a deep-dive into the linker scripts as understood by the GNU linker.</p>
  <p>I am wondering if it is possible to make the linker add section flags (such as READONLY, and LOAD) to an output section.</p>
  <p>The closest thing in the manual of ld is the &quot;Output Section Type&quot;, but if I understand correctly the directives mentioned there (NOLOAD and DSECT/COPY/INFO/OVERLAY) can only remove section flags, not add them.</p>