summaryrefslogtreecommitdiff
path: root/tools/gpio
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-11-20 23:07:43 -0800
committerAlexei Starovoitov <ast@kernel.org>2019-11-24 16:58:45 -0800
commit393cdfbee809891dc6ba859a44cc6441fa8dce9e (patch)
tree1f046a91c4fdc56fabf6559e47fd5793a08df058 /tools/gpio
parent8983b731ceb42939acaa6158abcf8adb56f834bf (diff)
libbpf: Support initialized global variables
Initialized global variables are no different in ELF from static variables, and don't require any extra support from libbpf. But they are matching semantics of global data (backed by BPF maps) more closely, preventing LLVM/Clang from aggressively inlining constant values and not requiring volatile incantations to prevent those. This patch enables global variables. It still disables uninitialized variables, which will be put into special COM (common) ELF section, because BPF doesn't allow uninitialized data to be accessed. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20191121070743.1309473-5-andriin@fb.com
Diffstat (limited to 'tools/gpio')
0 files changed, 0 insertions, 0 deletions