diff --git a/libbpf_android/Loader.cpp b/libbpf_android/Loader.cpp index ad20176..d68f407 100644 --- a/libbpf_android/Loader.cpp +++ b/libbpf_android/Loader.cpp @@ -30,9 +30,9 @@ #include #include -// This is BpfLoader v0.27 +// This is BpfLoader v0.28 #define BPFLOADER_VERSION_MAJOR 0u -#define BPFLOADER_VERSION_MINOR 27u +#define BPFLOADER_VERSION_MINOR 28u #define BPFLOADER_VERSION ((BPFLOADER_VERSION_MAJOR << 16) | BPFLOADER_VERSION_MINOR) #include "bpf/BpfUtils.h" @@ -737,6 +737,8 @@ static int createMaps(const char* elfPath, ifstream& elfFile, vector& } for (int i = 0; i < (int)mapNames.size(); i++) { + if (md[i].zero != 0) abort(); + if (BPFLOADER_VERSION < md[i].bpfloader_min_ver) { ALOGI("skipping map %s which requires bpfloader min ver 0x%05x", mapNames[i].c_str(), md[i].bpfloader_min_ver);