Skip to content

Commit

Permalink
Logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyHairy committed Jul 10, 2024
1 parent 2fff5ec commit b7e3de0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/emucore/CartELF.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit b7e3de0

Please sign in to comment.