[rtems commit] libdl: Use 64-bit ELF on 64-bit targets
Sebastian Huber
sebh at rtems.org
Fri Oct 6 10:47:00 UTC 2017
Module: rtems
Branch: master
Commit: 4e38aed00588b77fd326854d78889447e7120e86
Changeset: http://git.rtems.org/rtems/commit/?id=4e38aed00588b77fd326854d78889447e7120e86
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Oct 6 09:16:01 2017 +0200
libdl: Use 64-bit ELF on 64-bit targets
Update #3155.
---
cpukit/libdl/rtl-elf.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cpukit/libdl/rtl-elf.h b/cpukit/libdl/rtl-elf.h
index e3ac07f..cee0180 100644
--- a/cpukit/libdl/rtl-elf.h
+++ b/cpukit/libdl/rtl-elf.h
@@ -29,9 +29,13 @@ extern "C" {
**/
/*
- * Always 32bit for RTEMS at the moment. Do not add '()'. Leave plain.
+ * Do not add '()'. Leave plain.
*/
+#if defined(__powerpc64__) || defined(__arch64__)
+#define ELFSIZE 64
+#else
#define ELFSIZE 32
+#endif
/*
* Define _STANDALONE then remove after.
More information about the vc
mailing list