adds clang-format fixes
This commit is contained in:
parent
21e1f791ad
commit
a6a6f51f0b
@ -3,34 +3,33 @@
|
|||||||
#define ELFIO_NO_INTTYPES
|
#define ELFIO_NO_INTTYPES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <elfio/elfio_dump.hpp>
|
#include <elfio/elfio_dump.hpp>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace ELFIO;
|
using namespace ELFIO;
|
||||||
|
|
||||||
int main( int argc, char** argv )
|
int main(int argc, char** argv) {
|
||||||
{
|
if(argc != 2) {
|
||||||
if ( argc != 2 ) {
|
printf("Usage: elfdump <file_name>\n");
|
||||||
printf( "Usage: elfdump <file_name>\n" );
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
elfio reader;
|
elfio reader;
|
||||||
|
|
||||||
if ( !reader.load( argv[1] ) ) {
|
if(!reader.load(argv[1])) {
|
||||||
printf( "File %s is not found or it is not an ELF file\n", argv[1] );
|
printf("File %s is not found or it is not an ELF file\n", argv[1]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
dump::header( std::cout, reader );
|
dump::header(std::cout, reader);
|
||||||
dump::section_headers( std::cout, reader );
|
dump::section_headers(std::cout, reader);
|
||||||
dump::segment_headers( std::cout, reader );
|
dump::segment_headers(std::cout, reader);
|
||||||
dump::symbol_tables( std::cout, reader );
|
dump::symbol_tables(std::cout, reader);
|
||||||
dump::notes( std::cout, reader );
|
dump::notes(std::cout, reader);
|
||||||
dump::modinfo( std::cout, reader );
|
dump::modinfo(std::cout, reader);
|
||||||
dump::dynamic_tags( std::cout, reader );
|
dump::dynamic_tags(std::cout, reader);
|
||||||
dump::section_datas( std::cout, reader );
|
dump::section_datas(std::cout, reader);
|
||||||
dump::segment_datas( std::cout, reader );
|
dump::segment_datas(std::cout, reader);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user