This commit is contained in:
Christian Speckner 2024-07-11 00:57:34 +02:00
parent 2fff5ec118
commit b7e3de0423
1 changed files with 10 additions and 2 deletions

View File

@ -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();