From 0d73603b256ecef3ce475f5268f6dfccfd076850 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Fri, 30 Sep 2022 15:42:22 -0600 Subject: [PATCH] Revert "bpf: fix is_allow_list section" GCC was modified to use the same default section as LLVM, as such this is no longer required. Details: https://github.com/gcc-mirror/gcc/commit/a0aafbc324aa90421f0ce99c6f5bbf64ed163da6 This reverts commit e8b1e9cf1095f9d6d0f1e2dce2503e25fec2e6c5. --- src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c b/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c index 3e33728f40..32cde5c8e0 100644 --- a/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c +++ b/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c @@ -6,7 +6,7 @@ #include #include -const volatile __u8 is_allow_list SEC(".rodata") = 0; +const volatile __u8 is_allow_list = 0; /* Map containing the network interfaces indexes. * The interpretation of the map depends on the value of is_allow_list.