diff options
Diffstat (limited to 'rtl-mdreloc-sparc.c')
-rw-r--r-- | rtl-mdreloc-sparc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rtl-mdreloc-sparc.c b/rtl-mdreloc-sparc.c index 268d4bf..a96a5ae 100644 --- a/rtl-mdreloc-sparc.c +++ b/rtl-mdreloc-sparc.c @@ -97,6 +97,7 @@ static const uint32_t reloc_target_flags[] = { _RF_S|_RF_A| _RF_U|_RF_SZ(32) | _RF_RS(0), /* UA_32 */ }; +#define NOT_CURRENTLY_USED_BUT_MAYBE_USEFUL #ifdef NOT_CURRENTLY_USED_BUT_MAYBE_USEFUL static const char *reloc_names[] = { "NONE", "RELOC_8", "RELOC_16", "RELOC_32", "DISP_8", @@ -244,6 +245,11 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t* obj, *where |= value; } + if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC)) + printf ("rtl: %s %p @ %p in %s\n", + reloc_names[type], (void *)*where, where, rtems_rtl_obj_oname (obj)); + + return true; } |