diff options
| author | Evan Lojewski <github@meklort.com> | 2020-04-11 20:34:40 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-11 20:34:40 -0600 |
| commit | a985bfd6cdbe977e02c72de85f958e74ddf372e7 (patch) | |
| tree | 49fca1761d01f1ed258738b8772df7684e4338e6 /libs/elfio/examples/RelocationTable/RelocationTable.cpp | |
| parent | dc9705b4c65aa6b059a2f6beaf4d370620e583b7 (diff) | |
| download | bcm5719-ortega-a985bfd6cdbe977e02c72de85f958e74ddf372e7.tar.gz bcm5719-ortega-a985bfd6cdbe977e02c72de85f958e74ddf372e7.zip | |
coverity: Fix issues found with coverity (#78)
Diffstat (limited to 'libs/elfio/examples/RelocationTable/RelocationTable.cpp')
| -rw-r--r-- | libs/elfio/examples/RelocationTable/RelocationTable.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/elfio/examples/RelocationTable/RelocationTable.cpp b/libs/elfio/examples/RelocationTable/RelocationTable.cpp index 5257078..0c0905b 100644 --- a/libs/elfio/examples/RelocationTable/RelocationTable.cpp +++ b/libs/elfio/examples/RelocationTable/RelocationTable.cpp @@ -35,11 +35,11 @@ int main( int, char* argv[] ) if ( 0 < nNum ) { std::printf( "\nSection name: %s\n", pSec->GetName().c_str() ); std::printf( " Num Type Offset Addend Calc SymValue SymName\n" ); - for ( Elf_Xword i = 0; i < nNum; ++i ) { - pRel->GetEntry( i, offset, symbolValue, symbolName, + for ( Elf_Xword j = 0; j < nNum; ++j ) { + pRel->GetEntry( j, offset, symbolValue, symbolName, type, addend, calcValue ); std::printf( "[%4llx] %02x %08llx %08llx %08llx %08llx %s\n", - i, type, offset, + j, type, offset, addend, calcValue, symbolValue, symbolName.c_str() ); } |

