[PATCH] cpukit/libdl: AARCH64 unwind uses DWARF 2 tables

chrisj at rtems.org chrisj at rtems.org
Sat Aug 12 06:37:07 UTC 2023


From: Chris Johns <chrisj at rtems.org>

Closes #4943
---
 cpukit/libdl/rtl-mdreloc-aarch64.c | 17 +++++++++++++++++
 spec/build/cpukit/objdlaarch64.yml |  1 -
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/cpukit/libdl/rtl-mdreloc-aarch64.c b/cpukit/libdl/rtl-mdreloc-aarch64.c
index 46f87e9178..15396c3de9 100644
--- a/cpukit/libdl/rtl-mdreloc-aarch64.c
+++ b/cpukit/libdl/rtl-mdreloc-aarch64.c
@@ -561,3 +561,20 @@ rtems_rtl_elf_relocate_rel (rtems_rtl_obj*            obj,
   rtems_rtl_set_error (EINVAL, "rela type record not supported");
   return rtems_rtl_elf_rel_failure;
 }
+
+bool
+rtems_rtl_elf_unwind_parse (const rtems_rtl_obj* obj,
+                            const char*          name,
+                            uint32_t             flags) {
+  return rtems_rtl_elf_unwind_dw2_parse (obj, name, flags);
+}
+
+bool
+rtems_rtl_elf_unwind_register (rtems_rtl_obj* obj) {
+  return rtems_rtl_elf_unwind_dw2_register (obj);
+}
+
+bool
+rtems_rtl_elf_unwind_deregister (rtems_rtl_obj* obj) {
+  return rtems_rtl_elf_unwind_dw2_deregister (obj);
+}
diff --git a/spec/build/cpukit/objdlaarch64.yml b/spec/build/cpukit/objdlaarch64.yml
index 1715eefd3a..2909a902f2 100644
--- a/spec/build/cpukit/objdlaarch64.yml
+++ b/spec/build/cpukit/objdlaarch64.yml
@@ -12,5 +12,4 @@ install: []
 links: []
 source:
 - cpukit/libdl/rtl-mdreloc-aarch64.c
-- cpukit/libdl/rtl-unwind-arm.c
 type: build
-- 
2.37.1



More information about the devel mailing list