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-i386.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-i386.c')
-rw-r--r-- | rtl-mdreloc-i386.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rtl-mdreloc-i386.c b/rtl-mdreloc-i386.c index 6b83621..db46cb3 100644 --- a/rtl-mdreloc-i386.c +++ b/rtl-mdreloc-i386.c @@ -55,7 +55,7 @@ rtems_rtl_elf_relocate_rel (rtems_rtl_obj_t* obj, if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC)) printf ("rtl: reloc PC32 in %s --> %p (%p) in %s\n", sect->name, (void*) symvalue, - (void *)*where, obj->oname); + (void *)*where, rtems_rtl_obj_oname (obj)); break; case R_TYPE(GOT32): @@ -68,13 +68,15 @@ rtems_rtl_elf_relocate_rel (rtems_rtl_obj_t* obj, *where = tmp; if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC)) printf ("rtl: reloc 32/GLOB_DAT in %s --> %p in %s\n", - sect->name, (void *)*where, obj->oname); + sect->name, (void *)*where, + rtems_rtl_obj_oname (obj)); break; case R_TYPE(RELATIVE): *where += (Elf_Addr)sect->base; if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC)) - printf ("rtl: reloc RELATIVE in %s --> %p\n", obj->oname, (void *)*where); + printf ("rtl: reloc RELATIVE in %s --> %p\n", + rtems_rtl_obj_oname (obj), (void *)*where); break; case R_TYPE(COPY): |