https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123516

--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
../headers/xdp/xdp_helpers.h:7:#define XDP_RUN_CONFIG(f) _CONCAT(_,f)
SEC(".xdp_run_config")
../lib/libxdp/libxdp.c:40:#define XDP_RUN_CONFIG_SEC ".xdp_run_config"

.xdp_run_config does appear in the x86_64 xdp-trafficgen binary, and I guess it
gets handled via some runtime relocation with libbpf in xdp_program__parse_btf?

so

        sec = btf_get_datasec(btf, XDP_RUN_CONFIG_SEC);
        if (!sec)
                return -ENOENT;

must be what fails

Reply via email to