mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-27 12:17:28 +00:00
Tidy up the dump of 32-bit objects
This commit is contained in:
parent
e8dda3b0c2
commit
211b229799
@ -528,14 +528,13 @@ class dump
|
|||||||
|
|
||||||
out << "Section Headers:" << std::endl;
|
out << "Section Headers:" << std::endl;
|
||||||
if ( reader.get_class() == ELFCLASS32 ) { // Output for 32-bit
|
if ( reader.get_class() == ELFCLASS32 ) { // Output for 32-bit
|
||||||
out << "[ Nr ] Type Addr Size ES Flg Lk Inf "
|
out << "[ Nr ] Type Addr Size ES Flg "
|
||||||
"Al Name"
|
"Lk Inf Al Name"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
else { // Output for 64-bit
|
else { // Output for 64-bit
|
||||||
out << "[ Nr ] Type Addr Size "
|
out << "[ Nr ] Type Addr Size "
|
||||||
" "
|
" Offset Flg"
|
||||||
" Offset Flg"
|
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< " ES Lk Inf Al Name" << std::endl;
|
<< " ES Lk Inf Al Name" << std::endl;
|
||||||
}
|
}
|
||||||
@ -603,19 +602,17 @@ class dump
|
|||||||
|
|
||||||
out << "Program Headers:" << std::endl;
|
out << "Program Headers:" << std::endl;
|
||||||
if ( reader.get_class() == ELFCLASS32 ) { // Output for 32-bit
|
if ( reader.get_class() == ELFCLASS32 ) { // Output for 32-bit
|
||||||
out << "[ Nr ] Type VirtAddr PhysAddr FileSize Mem.Size "
|
out << "[ Nr ] Type VirtAddr PhysAddr FileSize "
|
||||||
"Flags Align"
|
"Mem.Size Flags Align"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
else { // Output for 64-bit
|
else { // Output for 64-bit
|
||||||
out << "[ Nr ] Type Offset VirtAddr "
|
out << "[ Nr ] Type Offset VirtAddr "
|
||||||
" "
|
" PhysAddr"
|
||||||
"PhysAddr"
|
|
||||||
|
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< " FileSize MemSize "
|
<< " FileSize MemSize "
|
||||||
" "
|
" Flags Align"
|
||||||
" Flags Align"
|
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -681,14 +678,13 @@ class dump
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
if ( reader.get_class() ==
|
if ( reader.get_class() ==
|
||||||
ELFCLASS32 ) { // Output for 32-bit
|
ELFCLASS32 ) { // Output for 32-bit
|
||||||
out << "[ Nr ] Value Size Type Bind "
|
out << "[ Nr ] Value Size Type Bind "
|
||||||
"Sect Name"
|
" Sect Name"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
else { // Output for 64-bit
|
else { // Output for 64-bit
|
||||||
out << "[ Nr ] Value Size "
|
out << "[ Nr ] Value Size "
|
||||||
"Type "
|
"Type Bind Sect"
|
||||||
" Bind Sect"
|
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< " Name" << std::endl;
|
<< " Name" << std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user