[rtems commit] libdl/rtl-elf.h: Fix aarch64 define

Joel Sherrill joel at rtems.org
Fri Jul 29 13:24:50 UTC 2022


Module:    rtems
Branch:    master
Commit:    f6432156483c632b776f5baf197782901d43669d
Changeset: http://git.rtems.org/rtems/commit/?id=f6432156483c632b776f5baf197782901d43669d

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Tue Jul 19 11:30:21 2022 -0500

libdl/rtl-elf.h: Fix aarch64 define

The aarch64 define was incorrect. This was causing the libdl tests to not
work correctly.

Updates #4682

---

 cpukit/libdl/rtl-elf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libdl/rtl-elf.h b/cpukit/libdl/rtl-elf.h
index c7c17c525a..0476c1ecd7 100644
--- a/cpukit/libdl/rtl-elf.h
+++ b/cpukit/libdl/rtl-elf.h
@@ -51,7 +51,7 @@ extern "C" {
 /*
  * Do not add '()'. Leave plain.
  */
-#if defined(__powerpc64__) || defined(__arch64__) || (__riscv_xlen == 64)
+#if defined(__powerpc64__) || defined(__aarch64__) || (__riscv_xlen == 64)
 #define ELFSIZE 64
 #else
 #define ELFSIZE 32



More information about the vc mailing list