mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:00:52 +07:00
fb982666e3
Bpftool build is broken with binutils version 2.29 and later. The cause is commit 003ca0fd2286 ("Refactor disassembler selection") in the binutils repo, which changed the disassembler() function signature. Fix this by adding a new "feature" to the tools/build/features infrastructure and make it responsible for decision which disassembler() function signature to use. Signed-off-by: Roman Gushchin <guro@fb.com> Cc: Jakub Kicinski <jakub.kicinski@netronome.com> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
16 lines
247 B
C
16 lines
247 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <bfd.h>
|
|
#include <dis-asm.h>
|
|
|
|
int main(void)
|
|
{
|
|
bfd *abfd = bfd_openr(NULL, NULL);
|
|
|
|
disassembler(bfd_get_arch(abfd),
|
|
bfd_big_endian(abfd),
|
|
bfd_get_mach(abfd),
|
|
abfd);
|
|
|
|
return 0;
|
|
}
|