Re: [PATCH v4 bpf-next 07/12] libbpf: add BPF static linker BTF and BTF.ext support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 19, 2021 at 11:39:01AM -0700, Andrii Nakryiko wrote:
> On Fri, Mar 19, 2021 at 9:23 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
> >
> > On Thu, Mar 18, 2021 at 12:40:31PM -0700, Andrii Nakryiko wrote:
> >
> > SNIP
> >
> > > +
> > > +     return NULL;
> > > +}
> > > +
> > > +static int linker_fixup_btf(struct src_obj *obj)
> > > +{
> > > +     const char *sec_name;
> > > +     struct src_sec *sec;
> > > +     int i, j, n, m;
> > > +
> > > +     n = btf__get_nr_types(obj->btf);
> >
> > hi,
> > I'm getting bpftool crash when building tests,
> >
> > looks like above obj->btf can be NULL:
> 
> I lost if (!obj->btf) return 0; somewhere along the rebases. I'll send
> a fix shortly. But how did you end up with selftests BPF objects built
> without BTF?

no idea.. I haven't even updated llvm for almost 3 days now ;-)

jirka




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux