Hi Richard.
> On Thu, 9 Sep 2021, Kees Cook wrote: > >> On Thu, Sep 09, 2021 at 10:49:11PM +0000, Qing Zhao wrote: >> > Hi, FYI >> > >> > I just committed the following patch to gcc upstream: >> > >> > >> > https://gcc.gnu.org/pipermail/gcc-cvs/2021-September/353195.html >> >> Hurray! Thank you so much for working on this, and thanks also to the >> reviewers and everyone else poking at it. >> >> I will go update my Linux Plumbers slides to say "supported" instead of >> "proposed". :) > > Can you two work on wording to add to gcc-12/changes.html for this > feature? I think it deserves a release note. Likewise the CTF/BTF > support btw. What about something like this for the BPF, CTF and BTF changes.. commit 3826495d1a2c265954d5da13ca71925eea390060 (HEAD -> master) Author: Jose E. Marchesi <jose.march...@oracle.com> Date: Fri Sep 10 15:44:30 2021 +0200 gcc-12/changes.html: BPF, CTF and BTF update * htdocs/gcc-12/changes.html (BPF): Item about the CO-RE support. (Debugging formats): New section with items about the support for CTF and BTF. diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html index 946faa49..936af979 100644 --- a/htdocs/gcc-12/changes.html +++ b/htdocs/gcc-12/changes.html @@ -143,6 +143,15 @@ a work-in-progress.</p> <!-- <h3 id="avr">AVR</h3> --> +<h3 id="bpf">BPF</h3> +<ul> + <li>Support for CO-RE (compile-once, run-everywhere) has been added + to the BPF backend. CO-RE allows to compile portable BPF + programs that are able to run among different versions of the + Linux kernel. + </li> +</ul> + <!-- <h3 id="x86">IA-32/x86-64</h3> --> <!-- <h3 id="mips">MIPS</h3> --> @@ -210,7 +219,25 @@ a work-in-progress.</p> <!-- <h2 id="plugins">Improvements for plugin authors</h2> --> <!-- .................................................................. --> -<!-- <h2>Other significant improvements</h2> --> +<h2>Other significant improvements</h2> + +<h3 id="debug">Debugging formats</h3> + +<ul> + <li>GCC can now generate debugging information + in <a href="https://ctfstd.org">CTF</a>, a lightweight debugging + format that provides information about C types and the + association between functions and data symbols and types. This + format is designed to be embedded in ELF files and to be very + compact and simple. A new command-line + option <code>-gctf</code> enables the generation of CTF. + </li> + <li>GCC can now generate debugging information in BTF. This is a + debugging format mainly used in BPF programs and the Linux + kernel. The compiler can generate BTF for any target, when + enabled with the command-line option <code>-gbtf</code> + </li> +</ul> <!-- .................................................................. -->