[PATCH] libdl: Add support for LDST128_ABS_LO12_NC

Kinsey Moore kinsey.moore at oarcorp.com
Fri May 19 19:16:11 UTC 2023


---
 cpukit/libdl/rtl-mdreloc-aarch64.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpukit/libdl/rtl-mdreloc-aarch64.c b/cpukit/libdl/rtl-mdreloc-aarch64.c
index 25057ce9d7..46f87e9178 100644
--- a/cpukit/libdl/rtl-mdreloc-aarch64.c
+++ b/cpukit/libdl/rtl-mdreloc-aarch64.c
@@ -329,6 +329,7 @@ rtems_rtl_elf_reloc_rela (rtems_rtl_obj*            obj,
     case R_AARCH_LDST16_ABS_LO12_NC:
     case R_AARCH_LDST32_ABS_LO12_NC:
     case R_AARCH_LDST64_ABS_LO12_NC:
+    case R_AARCH64_LDST128_ABS_LO12_NC:
       switch (ELF_R_TYPE(rela->r_info)) {
         case R_AARCH64_ADD_ABS_LO12_NC:
         case R_AARCH64_LDST8_ABS_LO12_NC:
@@ -343,6 +344,9 @@ rtems_rtl_elf_reloc_rela (rtems_rtl_obj*            obj,
         case R_AARCH_LDST64_ABS_LO12_NC:
           shift = 3;
           break;
+        case R_AARCH64_LDST128_ABS_LO12_NC:
+          shift = 4;
+          break;
         default:
           printf("illegal rtype: %" PRIu64 "\n", ELF_R_TYPE(rela->r_info));
           break;
-- 
2.30.2



More information about the devel mailing list