diff options
-rw-r--r-- | rtemstoolkit/elftoolchain/libelf/_libelf_config.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rtemstoolkit/elftoolchain/libelf/_libelf_config.h b/rtemstoolkit/elftoolchain/libelf/_libelf_config.h index 0f16f3a..16b5f0b 100644 --- a/rtemstoolkit/elftoolchain/libelf/_libelf_config.h +++ b/rtemstoolkit/elftoolchain/libelf/_libelf_config.h @@ -189,3 +189,25 @@ #endif #endif /* defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) */ + +#if defined(__WIN32__) || defined(__CYGWIN__) + +#define LIBELF_VCSID(ID) + +#if defined(__amd64__) + +#define LIBELF_ARCH EM_X86_64 +#define LIBELF_BYTEORDER ELFDATA2LSB +#define LIBELF_CLASS ELFCLASS64 + +#elif defined(__i386__) + +#define LIBELF_ARCH EM_386 +#define LIBELF_BYTEORDER ELFDATA2LSB +#define LIBELF_CLASS ELFCLASS32 + +#else +#error Unknown Windows architecture. +#endif + +#endif /* __WIN32__ || __CYGWIN__ */ |