Re: [PATCH bpf-next] selftests/bpf: define string const as global for test_sysctl_prog.c

2020-09-10 Thread Alexei Starovoitov
On Thu, Sep 10, 2020 at 1:27 PM Yonghong Song wrote: > > When tweaking llvm optimizations, I found that selftest build failed > with the following error: > libbpf: elf: skipping unrecognized data section(6) .rodata.str1.1 > libbpf: prog 'sysctl_tcp_mem': bad map relo against > '.L__const.is_t

Re: [PATCH bpf-next] selftests/bpf: define string const as global for test_sysctl_prog.c

2020-09-10 Thread Andrii Nakryiko
On Thu, Sep 10, 2020 at 1:30 PM Yonghong Song wrote: > > When tweaking llvm optimizations, I found that selftest build failed > with the following error: > libbpf: elf: skipping unrecognized data section(6) .rodata.str1.1 > libbpf: prog 'sysctl_tcp_mem': bad map relo against > '.L__const.is_t

[PATCH bpf-next] selftests/bpf: define string const as global for test_sysctl_prog.c

2020-09-10 Thread Yonghong Song
When tweaking llvm optimizations, I found that selftest build failed with the following error: libbpf: elf: skipping unrecognized data section(6) .rodata.str1.1 libbpf: prog 'sysctl_tcp_mem': bad map relo against '.L__const.is_tcp_mem.tcp_mem_name' in section '.rodata.str1.1' Error