[rtems commit] libdl: Add trace output when reading section headers.

Chris Johns chrisj at rtems.org
Mon Aug 15 08:09:10 UTC 2016


Module:    rtems
Branch:    4.11
Commit:    25c5583f92419dd03869a55e7f71e62b363e2f0f
Changeset: http://git.rtems.org/rtems/commit/?id=25c5583f92419dd03869a55e7f71e62b363e2f0f

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Aug 12 17:57:51 2016 +1000

libdl: Add trace output when reading section headers.

---

 cpukit/libdl/rtl-elf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpukit/libdl/rtl-elf.c b/cpukit/libdl/rtl-elf.c
index 0eee540..1b7c874 100644
--- a/cpukit/libdl/rtl-elf.c
+++ b/cpukit/libdl/rtl-elf.c
@@ -644,6 +644,9 @@ rtems_rtl_elf_parse_sections (rtems_rtl_obj_t* obj, int fd, Elf_Ehdr* ehdr)
      */
     off = obj->ooffset + ehdr->e_shoff + (((uint32_t) section) * ehdr->e_shentsize);
 
+    if (rtems_rtl_trace (RTEMS_RTL_TRACE_DETAIL))
+      printf ("rtl: section header: %2d: offset=%d\n", section, (int) off);
+
     if (!rtems_rtl_obj_cache_read_byval (sects, fd, off, &shdr, sizeof (shdr)))
       return false;
 




More information about the vc mailing list