[rtems commit] cpukit/libdl: Print the missing AArch64 reloc type

Joel Sherrill joel at rtems.org
Fri Jan 20 14:11:25 UTC 2023


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

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Thu Jan  5 13:48:29 2023 -0600

cpukit/libdl: Print the missing AArch64 reloc type

This prints the relocation type that was found to be missing in addition
to its address to aid in bug reports.

---

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

diff --git a/cpukit/libdl/rtl-mdreloc-aarch64.c b/cpukit/libdl/rtl-mdreloc-aarch64.c
index c60ecb31c9..4c51d97a78 100644
--- a/cpukit/libdl/rtl-mdreloc-aarch64.c
+++ b/cpukit/libdl/rtl-mdreloc-aarch64.c
@@ -452,8 +452,8 @@ rtems_rtl_elf_reloc_rela (rtems_rtl_obj*            obj,
       break;
 
     default:
-      printf ("rtl: Unsupported relocation type in %s --> %p in %s\n",
-              sect->name, (void *)where,
+      printf ("rtl: Unsupported relocation type (%ld) in %s --> %p in %s\n",
+              ELF_R_TYPE(rela->r_info), sect->name, (void *)where,
               rtems_rtl_obj_oname (obj));
       return rtems_rtl_elf_rel_failure;
   }



More information about the vc mailing list