Andrii Nakryiko <andrii@xxxxxxxxxx> writes: > Enact deprecation of legacy BPF map definition in SEC("maps") ([0]). For > the definitions themselves introduce LIBBPF_STRICT_MAP_DEFINITIONS flag > for libbpf strict mode. If it is set, error out on any struct > bpf_map_def-based map definition. If not set, libbpf will print out > a warning for each legacy BPF map to raise awareness that it goes > away. We've touched upon this subject before, but I (still) don't think it's a good idea to remove this support entirely: It makes it impossible to write a loader that can handle both new and old BPF objects. So discourage the use of the old map definitions, sure, but please don't make it completely impossible to load such objects. -Toke