OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da5fb18
)
libbpf: Fix Makefile' libbpf symbol mismatch diagnostic
author
Andrii Nakryiko
<andriin@fb.com>
Wed, 27 Nov 2019 20:01:34 +0000
(12:01 -0800)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Wed, 27 Nov 2019 21:29:02 +0000
(22:29 +0100)
Fix Makefile's diagnostic diff output when there is LIBBPF_API-versioned
symbols mismatch.
Fixes:
1bd63524593b
("libbpf: handle symbol versioning properly for libbpf.a")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link:
https://lore.kernel.org/bpf/20191127200134.1360660-1-andriin@fb.com
tools/lib/bpf/Makefile
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/Makefile
b/tools/lib/bpf/Makefile
index
99425d0
..
1470303
100644
(file)
--- a/
tools/lib/bpf/Makefile
+++ b/
tools/lib/bpf/Makefile
@@
-214,7
+214,7
@@
check_abi: $(OUTPUT)libbpf.so
"versioned symbols in $^ ($(VERSIONED_SYM_COUNT))." \
"Please make sure all LIBBPF_API symbols are" \
"versioned in $(VERSION_SCRIPT)." >&2; \
- readelf -s --wide $(
OUTPUT)libbpf-in.o |
\
+ readelf -s --wide $(
BPF_IN_SHARED) |
\
cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \
awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$8}'| \
sort -u > $(OUTPUT)libbpf_global_syms.tmp; \