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

Kinsey Moore kinsey.moore at oarcorp.com
Sat Aug 12 17:19:38 UTC 2023


This looks good to me.

Thanks,
Kinsey

On Sat, Aug 12, 2023 at 1:37 AM <chrisj at rtems.org> wrote:

> 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
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20230812/5071be2a/attachment.htm>


More information about the devel mailing list