Implement orphaned sections
[centaur.git] / src / model / dump.c
index 882ba0af7d3d36bb27c061b8dd1c9d20c7b3aaea..67a498a184e7a2e531cf6b6624e64b21b9f24168 100644 (file)
@@ -209,6 +209,15 @@ void elfu_mDumpElf(ElfuElf *me)
   ELFU_INFO("\n");
 
 
+  ELFU_INFO("Orphaned sections:\n");
+  CIRCLEQ_FOREACH(ms, &me->orphanScnList, elemChildScn) {
+    ELFU_INFO("        * %-17s @ %8jx\n",
+              elfu_mScnName(me, ms),
+              ms->shdr.sh_addr);
+  }
+  ELFU_INFO("\n");
+
+
   ELFU_INFO("Sections:\n");
   ELFU_INFO("     #  Name              sh_type          sh_addr sh_offset  sh_size ES Fl Al sh_link           sh_info          \n");
   ELFU_INFO("       |                 |               |        |         |        |  |  |  |                 |                 \n");