diff options
author | norly <ny-git@enpas.org> | 2013-05-28 23:34:51 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-05-28 23:34:51 +0100 |
commit | eb5a1daba781013ccf168b95510d0f67f0b9c946 (patch) | |
tree | 1737caa39931eaec818b992acc5df43bb02b1794 /src/model/dump.c | |
parent | 11bf2836351cdb0703506d9d24ebd72bb420d1df (diff) |
Implement orphaned sections
Orphaned sections are not (fully) included in any LOAD PHDR and can thus
be moved and stripped at will without changing the memory image of the
program.
Diffstat (limited to 'src/model/dump.c')
-rw-r--r-- | src/model/dump.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/model/dump.c b/src/model/dump.c index 882ba0a..67a498a 100644 --- a/src/model/dump.c +++ b/src/model/dump.c @@ -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"); |