summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/bpf-type-attributes.html
blob: c1f3bd6005cd1221d52a2a2a0731b407cba2c312 (plain)
1
2
3
4
5
6
<div class="subsection-level-extent" id="BPF-Type-Attributes"> <div class="nav-panel"> <p> Next: <a href="type-attributes" accesskey="n" rel="next">PowerPC Type Attributes</a>, Previous: <a href="arm-type-attributes" accesskey="p" rel="prev">ARM Type Attributes</a>, Up: <a href="type-attributes" accesskey="u" rel="up">Specifying Attributes of Types</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div>  <h1 class="subsection" id="BPF-Type-Attributes-1"><span>6.35.4 BPF Type Attributes<a class="copiable-link" href="#BPF-Type-Attributes-1"> ¶</a></span></h1>  <p>BPF Compile Once - Run Everywhere (CO-RE) support. When attached to a <code class="code">struct</code> or <code class="code">union</code> type definition, indicates that CO-RE relocation information should be generated for any access to a variable of that type. The behavior is equivalent to the programmer manually wrapping every such access with <code class="code">__builtin_preserve_access_index</code>. </p> </div><div class="_attribution">
  <p class="_attribution-p">
    &copy; Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
    <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/BPF-Type-Attributes.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/BPF-Type-Attributes.html</a>
  </p>
</div>