summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-04-08 01:04:46 +0200
committerAlexei Starovoitov <ast@kernel.org>2022-04-08 18:16:09 +0200
commit3a06ec0a996dc8c4bc518f0b6bedc3587dd15169 (patch)
tree2dc7e9d66f73b6e47cd0b6fae2799298a974be5b /samples
parentlibbpf: Use strlcpy() in path resolution fallback logic (diff)
downloadlinux-3a06ec0a996dc8c4bc518f0b6bedc3587dd15169.tar.xz
linux-3a06ec0a996dc8c4bc518f0b6bedc3587dd15169.zip
libbpf: Allow WEAK and GLOBAL bindings during BTF fixup
During BTF fix up for global variables, global variable can be global weak and will have STB_WEAK binding in ELF. Support such global variables in addition to non-weak ones. This is not the problem when using BPF static linking, as BPF static linker "fixes up" BTF during generation so that libbpf doesn't have to do it anymore during bpf_object__open(), which led to this not being noticed for a while, along with a pretty rare (currently) use of __weak variables and maps. Reported-by: Hengqi Chen <hengqi.chen@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20220407230446.3980075-2-andrii@kernel.org
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions