[PATCH] place `const volatile' objects in read-only sections

2022-08-04 Thread Jose E. Marchesi via Gcc-patches
Hi people! First of all, a bit of context. It is common for C BPF programs to use variables that are implicitly set by the underlying BPF machinery and not by the program itself. It is also necessary for these variables to be stored in read-only storage so the BPF verifier recognizes them as s

Re: [PATCH] place `const volatile' objects in read-only sections

2022-08-04 Thread Richard Biener via Gcc-patches
On Fri, Aug 5, 2022 at 3:27 AM Jose E. Marchesi via Gcc-patches wrote: > > > Hi people! > > First of all, a bit of context. > > It is common for C BPF programs to use variables that are implicitly set > by the underlying BPF machinery and not by the program itself. It is > also necessary for thes

Re: [PATCH] place `const volatile' objects in read-only sections

2022-08-05 Thread Jose E. Marchesi via Gcc-patches
Hi Richard. > On Fri, Aug 5, 2022 at 3:27 AM Jose E. Marchesi via Gcc-patches > wrote: >> >> >> Hi people! >> >> First of all, a bit of context. >> >> It is common for C BPF programs to use variables that are implicitly set >> by the underlying BPF machinery and not by the program itself. It i

Re: [PATCH] place `const volatile' objects in read-only sections

2022-08-05 Thread Richard Biener via Gcc-patches
On Fri, Aug 5, 2022 at 10:30 AM Jose E. Marchesi wrote: > > > Hi Richard. > > > On Fri, Aug 5, 2022 at 3:27 AM Jose E. Marchesi via Gcc-patches > > wrote: > >> > >> > >> Hi people! > >> > >> First of all, a bit of context. > >> > >> It is common for C BPF programs to use variables that are implic