aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/linked_vars1.c
AgeCommit message (Collapse)AuthorFilesLines
2021-04-23selftests/bpf: Add global variables linking selftestAndrii Nakryiko1-0/+54
Add selftest validating various aspects of statically linking global variables: - correct resolution of extern variables across .bss, .data, and .rodata sections; - correct handling of weak definitions; - correct de-duplication of repeating special externs (.kconfig, .ksyms). Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]