mirror of
https://github.com/serge1/ELFIO.git
synced 2025-04-16 05:42:31 +00:00
Fixed some warnings from Cppcheck.
This commit is contained in:
parent
15cd4b1bf2
commit
010ef79cd0
@ -74,7 +74,7 @@ checkSection( const section* sec,
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void
|
void
|
||||||
checkSection( const section* sec,
|
checkSection( const section* sec,
|
||||||
std::string name,
|
const std::string &name,
|
||||||
Elf_Word type,
|
Elf_Word type,
|
||||||
Elf_Xword flags,
|
Elf_Xword flags,
|
||||||
Elf64_Addr address,
|
Elf64_Addr address,
|
||||||
|
@ -35,11 +35,11 @@ int main( int, char* argv[] )
|
|||||||
if ( 0 < nNum ) {
|
if ( 0 < nNum ) {
|
||||||
std::printf( "\nSection name: %s\n", pSec->GetName().c_str() );
|
std::printf( "\nSection name: %s\n", pSec->GetName().c_str() );
|
||||||
std::printf( " Num Type Offset Addend Calc SymValue SymName\n" );
|
std::printf( " Num Type Offset Addend Calc SymValue SymName\n" );
|
||||||
for ( Elf_Xword i = 0; i < nNum; ++i ) {
|
for ( Elf_Xword j = 0; j < nNum; ++j ) {
|
||||||
pRel->GetEntry( i, offset, symbolValue, symbolName,
|
pRel->GetEntry( j, offset, symbolValue, symbolName,
|
||||||
type, addend, calcValue );
|
type, addend, calcValue );
|
||||||
std::printf( "[%4llx] %02x %08llx %08llx %08llx %08llx %s\n",
|
std::printf( "[%4llx] %02x %08llx %08llx %08llx %08llx %s\n",
|
||||||
i, type, offset,
|
j, type, offset,
|
||||||
addend, calcValue,
|
addend, calcValue,
|
||||||
symbolValue, symbolName.c_str() );
|
symbolValue, symbolName.c_str() );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user