diff options
author | Chris Johns <chrisj@rtems.org> | 2012-05-13 18:29:13 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-05-13 18:29:13 +1000 |
commit | fb0c9b27451d420175a76a0eef733792317d225f (patch) | |
tree | fa2799063f54b4cd6324bf3f028eee40d45b87dc /rtl-mdreloc-sparc.c | |
parent | b78c02ab55ae3c0a932901896051617e1a212952 (diff) |
Support indirect pointers for strings in the object file.
Add indirect pointers and use it for the file names parts which
are part of the object module.
Diffstat (limited to 'rtl-mdreloc-sparc.c')
-rw-r--r-- | rtl-mdreloc-sparc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rtl-mdreloc-sparc.c b/rtl-mdreloc-sparc.c index aee9b7b..697f039 100644 --- a/rtl-mdreloc-sparc.c +++ b/rtl-mdreloc-sparc.c @@ -176,7 +176,8 @@ rtems_rtl_elf_relocate_rela (rtems_rtl_obj_t* obj, if (type == R_TYPE (RELATIVE)) { *where += (Elf_Addr)(sect->base + value); if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC)) - printf ("rtl: reloc relative in %s --> %p", obj->oname, (void *)*where); + printf ("rtl: reloc relative in %s --> %p", + rtems_rtl_obj_oname (obj), (void *)*where); return true; } @@ -208,7 +209,8 @@ rtems_rtl_elf_relocate_rela (rtems_rtl_obj_t* obj, if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC)) printf("rtl: reloc base_rel(%s): where=%p, *where 0x%lx, " "addend=0x%lx, base %p\n", - obj->oname, where, *where, rela->r_addend, sect->base); + rtems_rtl_obj_oname (obj), + where, *where, rela->r_addend, sect->base); } #endif value += (Elf_Word)(sect->base + *where); |