aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf_common.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-09-07 22:10:23 +0000
committerAlexei Starovoitov <[email protected]>2021-09-08 02:32:04 +0000
commit006a5099fc18a43792b01d002e1e45c5541ea666 (patch)
tree1340a5ef235ddf7b7bccce0e65ff0cbbcf84034a /tools/lib/bpf/libbpf_common.h
parentMerge branch 'Bpf skeleton helper method' (diff)
downloadkernel-006a5099fc18a43792b01d002e1e45c5541ea666.tar.gz
kernel-006a5099fc18a43792b01d002e1e45c5541ea666.zip
libbpf: Fix build with latest gcc/binutils with LTO
After updating to binutils 2.35, the build began to fail with an assembler error. A bug was opened on the Red Hat Bugzilla a few days later for the same issue. Work around the problem by using the new `symver` attribute (introduced in GCC 10) as needed instead of assembler directives. This addresses Red Hat ([0]) and OpenSUSE ([1]) bug reports, as well as libbpf issue ([2]). [0]: https://bugzilla.redhat.com/show_bug.cgi?id=1863059 [1]: https://bugzilla.opensuse.org/show_bug.cgi?id=1188749 [2]: Closes: https://github.com/libbpf/libbpf/issues/338 Co-developed-by: Patrick McCarty <[email protected]> Co-developed-by: Michal Suchanek <[email protected]> Signed-off-by: Patrick McCarty <[email protected]> Signed-off-by: Michal Suchanek <[email protected]> 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 'tools/lib/bpf/libbpf_common.h')
0 files changed, 0 insertions, 0 deletions