diff --git a/src/emucore/CartELF.cxx b/src/emucore/CartELF.cxx index 080a26693..021016ec4 100644 --- a/src/emucore/CartELF.cxx +++ b/src/emucore/CartELF.cxx @@ -85,7 +85,7 @@ namespace { #ifdef DUMP_ELF void dumpElf(const ElfParser& parser) { - cout << "ELF sections:" << std::endl << std::endl; + cout << std::endl << "ELF sections:" << std::endl << std::endl; size_t i = 0; for (auto& section: parser.getSections()) { @@ -116,9 +116,17 @@ namespace { void dumpLinkage(const ElfParser& parser, const ElfLinker& linker) { - cout << std::endl << "relocated sections:" << std::endl << std::endl; cout << std::hex << std::setfill('0'); + cout + << std::endl + << "text segment size: 0x" << std::setw(8) << linker.getTextSize() + << std::endl + << "data segment size: 0x" << std::setw(8) << linker.getDataSize() + << std::endl; + + cout << std::endl << "relocated sections:" << std::endl << std::endl; + const auto& sections = parser.getSections(); const auto& relocatedSections = linker.getRelocatedSections();