Re: [PATCH] backends,bpf: add proper relocation support

2018-06-16 Thread Mark Wielaard
Hi, I added Richard to the CC, who added the original BPF support. Who might remember where the R_BPF_MAP_FD comes from (see at the end). On Fri, 2018-06-15 at 15:40 -0700, Yonghong Song wrote: > Due to libdw does not have proper BPF relocation support, > the pahole cannot display filenames corre

[PATCH] backends,bpf: add proper relocation support

2018-06-15 Thread Yonghong Song
Due to libdw does not have proper BPF relocation support, the pahole cannot display filenames correctly for objects with default llvm options. So we have to invent a special option "llc -march=bpf -mattr=dwarfris" to prevent llvm from generating cross-section dwarf relocation records (https://revie