moved elf logging to DebugDump fuction , which can be enabled in config . This reduces main log file a lot

This commit is contained in:
georgemoralis 2024-07-01 23:07:57 +03:00
parent b2508c502b
commit 3b87c3c128
3 changed files with 40 additions and 51 deletions

View file

@ -379,6 +379,12 @@ void Linker::DebugDump() {
std::filesystem::create_directory(filepath);
m.get()->import_sym.DebugDump(filepath / "imports.txt");
m.get()->export_sym.DebugDump(filepath / "exports.txt");
if (m.get()->elf.IsSelfFile()) {
m.get()->elf.SelfHeaderDebugDump(filepath / "selfHeader.txt");
m.get()->elf.SelfSegHeaderDebugDump(filepath / "selfSegHeaders.txt");
}
m.get()->elf.ElfHeaderDebugDump(filepath / "elfHeader.txt");
m.get()->elf.PHeaderDebugDump(filepath / "elfPHeaders.txt");
}
}