Skip to content

Commit b568405

Browse files
anakryikoborkmann
authored andcommitted
libbpf: Fix Makefile' libbpf symbol mismatch diagnostic
Fix Makefile's diagnostic diff output when there is LIBBPF_API-versioned symbols mismatch. Fixes: 1bd6352 ("libbpf: handle symbol versioning properly for libbpf.a") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent da5fb18 commit b568405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ check_abi: $(OUTPUT)libbpf.so
214214
"versioned symbols in $^ ($(VERSIONED_SYM_COUNT))." \
215215
"Please make sure all LIBBPF_API symbols are" \
216216
"versioned in $(VERSION_SCRIPT)." >&2; \
217-
readelf -s --wide $(OUTPUT)libbpf-in.o | \
217+
readelf -s --wide $(BPF_IN_SHARED) | \
218218
cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \
219219
awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$8}'| \
220220
sort -u > $(OUTPUT)libbpf_global_syms.tmp; \

0 commit comments

Comments
 (0)