]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/perf/config/feature-checks/test-libelf-mmap.c
Merge remote-tracking branch 'tip/auto-latest'
[karo-tx-linux.git] / tools / perf / config / feature-checks / test-libelf-mmap.c
diff --git a/tools/perf/config/feature-checks/test-libelf-mmap.c b/tools/perf/config/feature-checks/test-libelf-mmap.c
new file mode 100644 (file)
index 0000000..564427d
--- /dev/null
@@ -0,0 +1,8 @@
+#include <libelf.h>
+
+int main(void)
+{
+       Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0);
+
+       return (long)elf;
+}