[committed][wwwdocs] gcc-11/changes: "used" attribute saves decls from linker garbage collection

Gerald Pfeifer gerald@pfeifer.com
Mon Dec 14 23:48:47 GMT 2020


On Mon, 7 Dec 2020, Jozef Lawrynowicz wrote:
> Committed as obvious.

Thank you!

+  <li>
+    For ELF targets that support the GNU or FreeBSD OSABIs, the
+    <code>used</code> attribute will now save the symbol declaration it is
+    applied to from linker garbage collection.
+    <br>
+    To support this behavior, <code>used</code> symbols that have not
+    been placed in specific sections (e.g. with the <code>section</code>
+    attribute, or the <code>-f{function,data}-sections</code> options) will
+    be placed in new, unique sections.
+    <br>
+    This functionality requires Binutils version 2.36 or later.
+  </li>

Have you considered using <p>...</p> around the three blocks of
text instead of <br> in between?

An open question, it's okay to keep as is if you prefer.

Gerald


More information about the Gcc-patches mailing list