1/* This file excercises the ELF loader. It is not a valid BPF program. */ 2 3#include "common.h" 4 5#if __clang_major__ >= 9 6struct { 7 __uint(type, BPF_MAP_TYPE_HASH); 8 __type(key, uint32_t); 9 __type(value, uint64_t); 10 __uint(max_entries, 1); 11} hash_map __section(".maps") = { 12 /* This forces a non-zero byte into the .maps section. */ 13 .key = (void *)1, 14}; 15#else 16#error This file has to be compiled with clang >= 9 17#endif