summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-08-12 17:57:51 +1000
committerChris Johns <chrisj@rtems.org>2016-08-15 15:41:52 +1000
commit75386e11313bbeef0adb2aadf046036f92dc22b6 (patch)
treef761fc64a5a2677ae00418637c5574c6a94ffc4c
parentlibbsp/arm: Add the TTB table to the default MMU set up as read/write. (diff)
downloadrtems-75386e11313bbeef0adb2aadf046036f92dc22b6.tar.bz2
libdl: Add trace output when reading section headers.
-rw-r--r--cpukit/libdl/rtl-elf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/libdl/rtl-elf.c b/cpukit/libdl/rtl-elf.c
index 48d81df124..b686a4812f 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;