diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2022-10-12 08:44:38 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-10-12 09:58:58 -0500 |
commit | 40529bc566105be801481880a385a750bed44d36 (patch) | |
tree | 2e314f8e7b3d30b98fba9b24d2b36ac515422779 /rtemstoolkit | |
parent | tester: Check for begin/end of test (diff) | |
download | rtems-tools-40529bc566105be801481880a385a750bed44d36.tar.bz2 |
_libelf_config.h: Add removed Cygwin code
This code was removed for some reason. Without it, we are unable to build
RTEMS with Cygwin.
Diffstat (limited to 'rtemstoolkit')
-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__ */ |