[PATCH] D131012: No longer place const volatile global variables in a read only section

Andrii Nakryiko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 2 15:58:20 PDT 2022


anakryiko added a comment.

This will severly break BPF users, as we have a heavy reliance on `const volatile` variables being allocated to `.rodata`, which are passed to BPF verifier in Linux kernel as read-only values. This is critical for BPF Complie Once - Run Everywhere approach of writing portable BPF applications. We've been relying on this behavior for years now and changes this will break many existing BPF applications.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131012/new/

https://reviews.llvm.org/D131012



More information about the cfe-commits mailing list