mirror of
https://github.com/serge1/ELFIO.git
synced 2025-03-22 19:21:01 +00:00
Tiny reformat
This commit is contained in:
parent
fc3c397dd0
commit
2879ee62a2
@ -42,16 +42,17 @@ template <class S> class symbol_section_accessor_template
|
|||||||
Elf_Xword get_symbols_num() const
|
Elf_Xword get_symbols_num() const
|
||||||
{
|
{
|
||||||
Elf_Xword nRet = 0;
|
Elf_Xword nRet = 0;
|
||||||
|
|
||||||
size_t minimum_symbol_size;
|
size_t minimum_symbol_size;
|
||||||
switch ( elf_file.get_class() ) {
|
switch ( elf_file.get_class() ) {
|
||||||
case ELFCLASS32:
|
case ELFCLASS32:
|
||||||
minimum_symbol_size = sizeof(Elf32_Sym);
|
minimum_symbol_size = sizeof( Elf32_Sym );
|
||||||
break;
|
break;
|
||||||
case ELFCLASS64:
|
case ELFCLASS64:
|
||||||
minimum_symbol_size = sizeof(Elf64_Sym);
|
minimum_symbol_size = sizeof( Elf64_Sym );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return nRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( symbol_section->get_entry_size() >= minimum_symbol_size &&
|
if ( symbol_section->get_entry_size() >= minimum_symbol_size &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user