diff options
author | 2019-10-28 11:20:49 +0100 | |
---|---|---|
committer | 2019-10-28 16:15:51 +0100 | |
commit | 313e7f6fb1d9a8814424c2c6878848648c9c090f (patch) | |
tree | b0e3c79894452536809c7aec09276c03f61a4d2e /tools/lib/bpf/libbpf.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (diff) | |
download | linux-dev-313e7f6fb1d9a8814424c2c6878848648c9c090f.tar.xz linux-dev-313e7f6fb1d9a8814424c2c6878848648c9c090f.zip |
selftest/bpf: Use -m{little, big}-endian for clang
When cross-compiling tests from x86 to s390, the resulting BPF objects
fail to load due to endianness mismatch.
Fix by using BPF-GCC endianness check for clang as well.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191028102049.7489-1-iii@linux.ibm.com
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions