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;
   }
-- 
2.30.2

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to