aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2019-11-20 23:07:43 -0800
committerAlexei Starovoitov <[email protected]>2019-11-24 16:58:45 -0800
commit393cdfbee809891dc6ba859a44cc6441fa8dce9e (patch)
tree1f046a91c4fdc56fabf6559e47fd5793a08df058 /scripts/gdb/linux
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 <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions