[libc-commits] [libc] [libc] Provide a minimal implementation of elf.h (PR #172766)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Wed Dec 17 20:51:45 PST 2025
================
@@ -9,10 +9,6 @@
#ifndef LLVM_LIBC_MACROS_ELF_MACROS_H
#define LLVM_LIBC_MACROS_ELF_MACROS_H
-#if __has_include(<linux/elf.h>)
-#include <linux/elf.h>
-#else
-#error "cannot use <sys/elf.h> without proper system headers."
-#endif
+#define EI_NIDENT 16
----------------
petrhosek wrote:
I originally planned on starting with something more minimal and expand later, but given that we're already using these macro inside libc I don't think that's going to work, so I'm expanding the change to cover these use cases as well.
https://github.com/llvm/llvm-project/pull/172766
More information about the libc-commits
mailing list