mirror of
https://github.com/serge1/ELFIO.git
synced 2025-03-29 19:20:41 +00:00
The counter type for 'symbol_tables' has been changed to Elf_Xword
This commit is contained in:
parent
9f0c760767
commit
a935b5472e
@ -596,7 +596,7 @@ class dump
|
|||||||
if ( SHT_SYMTAB == sec->get_type() || SHT_DYNSYM == sec->get_type() ) {
|
if ( SHT_SYMTAB == sec->get_type() || SHT_DYNSYM == sec->get_type() ) {
|
||||||
symbol_section_accessor symbols( reader, sec );
|
symbol_section_accessor symbols( reader, sec );
|
||||||
|
|
||||||
Elf_Xword sym_no = symbols.get_symbols_num();
|
Elf_Xword sym_no = symbols.get_symbols_num();
|
||||||
if ( sym_no > 0 ) {
|
if ( sym_no > 0 ) {
|
||||||
out << "Symbol table (" << sec->get_name() << ")" << std::endl;
|
out << "Symbol table (" << sec->get_name() << ")" << std::endl;
|
||||||
if ( reader.get_class() == ELFCLASS32 ) { // Output for 32-bit
|
if ( reader.get_class() == ELFCLASS32 ) { // Output for 32-bit
|
||||||
@ -608,7 +608,7 @@ class dump
|
|||||||
<< " Name"
|
<< " Name"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
for ( Elf_Half i = 0; i < sym_no; ++i ) {
|
for ( Elf_Xword i = 0; i < sym_no; ++i ) {
|
||||||
std::string name;
|
std::string name;
|
||||||
Elf64_Addr value = 0;
|
Elf64_Addr value = 0;
|
||||||
Elf_Xword size = 0;
|
Elf_Xword size = 0;
|
||||||
@ -684,13 +684,13 @@ class dump
|
|||||||
out << "Note section (" << sec->get_name() << ")" << std::endl
|
out << "Note section (" << sec->get_name() << ")" << std::endl
|
||||||
<< " No Type Name"
|
<< " No Type Name"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
for ( int j = 0; j < no_notes; ++j ) { // For all notes
|
for ( Elf_Word j = 0; j < no_notes; ++j ) { // For all notes
|
||||||
Elf_Word type;
|
Elf_Word type;
|
||||||
std::string name;
|
std::string name;
|
||||||
void* desc;
|
void* desc;
|
||||||
Elf_Word descsz;
|
Elf_Word descsz;
|
||||||
|
|
||||||
if ( notes.get_note(j, type, name, desc, descsz) ) {
|
if ( notes.get_note( j, type, name, desc, descsz ) ) {
|
||||||
// 'name' usually contains \0 at the end. Try to fix it
|
// 'name' usually contains \0 at the end. Try to fix it
|
||||||
name = name.c_str();
|
name = name.c_str();
|
||||||
note( out, j, type, name );
|
note( out, j, type, name );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user