Re: [PATCH bpf-next] libbpf: preserve empty DATASEC BTFs during static linking

2021-03-25 Thread Andrii Nakryiko
On Thu, Mar 25, 2021 at 8:31 AM Yonghong Song wrote: > > > > On 3/24/21 10:11 PM, Andrii Nakryiko wrote: > > Ensure that BPF static linker preserves all DATASEC BTF types, even if some > > of > > them might not have any variable information at all. It's not completely > > clear > > in which case

Re: [PATCH bpf-next] libbpf: preserve empty DATASEC BTFs during static linking

2021-03-25 Thread Yonghong Song
On 3/24/21 10:11 PM, Andrii Nakryiko wrote: Ensure that BPF static linker preserves all DATASEC BTF types, even if some of them might not have any variable information at all. It's not completely clear in which cases Clang chooses to not emit variable information, so adding reliable repro is h

[PATCH bpf-next] libbpf: preserve empty DATASEC BTFs during static linking

2021-03-24 Thread Andrii Nakryiko
Ensure that BPF static linker preserves all DATASEC BTF types, even if some of them might not have any variable information at all. It's not completely clear in which cases Clang chooses to not emit variable information, so adding reliable repro is hard. But manual testing showed that this work cor