[PATCH 1/2] libdl: Use 64-bit ELF on 64-bit targets

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 6 07:17:43 UTC 2017


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 e3ac07f7ed..cee01804e0 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.
-- 
2.12.3



More information about the devel mailing list