On Wed, 2024-04-24 at 10:41 +0200, Jose E. Marchesi wrote: > This little patch modifies selftests/bpf/Makefile so it passes the > following extra options when invoking gcc-bpf: > > -gbtf > This makes GCC to emit BTF debug info in .BTF and .BTF.ext. > > -mco-re > This tells GCC to generate CO-RE relocations in .BTF.ext. > > -masm=pseudoc > This tells GCC to emit BPF assembler using the pseudo-c syntax. > > Tested in bpf-next master. > No regressions. > > Signed-off-by: Jose E. Marchesi <jose.marchesi@xxxxxxxxxx> > Cc: Yonghong Song <yhs@xxxxxxxx> > Cc: Eduard Zingerman <eddyz87@xxxxxxxxx> > Cc: david.faust@xxxxxxxxxx > Cc: cupertino.miranda@xxxxxxxxxx > --- I tried this patch with regular LLVM build and everything works as expected. Unfortunately, can't test for GCC build. Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>