libdl/sparc: Print trace message of reloc failture path

Updates #3969
This commit is contained in:
Chris Johns
2020-05-05 14:53:53 +10:00
parent 285cda38e1
commit fe77587c64

View File

@@ -232,8 +232,11 @@ rtems_rtl_elf_relocate_rela (rtems_rtl_obj* obj,
* We use the fact that relocation types are an `enum' * We use the fact that relocation types are an `enum'
* Note: R_SPARC_6 is currently numerically largest. * Note: R_SPARC_6 is currently numerically largest.
*/ */
if (type > R_TYPE(6)) if (type > R_TYPE(TLS_TPOFF64)) {
if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
printf("rtl: invalid reloc type: %d\n", (int) type);
return rtems_rtl_elf_rel_failure; return rtems_rtl_elf_rel_failure;
}
value = rela->r_addend; value = rela->r_addend;