Don't use 'dump' functions in 'anonymizer' example

This commit is contained in:
Serge Lamikhov-Center 2020-08-08 08:36:59 -07:00
parent 5f904722f6
commit 8494fd4088
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ THE SOFTWARE.
#include <string>
#include <iostream>
#include <elfio/elfio_dump.hpp>
#include <elfio/elfio.hpp>
#include <fstream>
#include <random>

View File

@ -64,6 +64,7 @@ int main( void )
// Add code section into program segment
data_seg->add_section_index( data_sec->get_index(), data_sec->get_addr_align() );
// Add optional signature for the file producer
section* note_sec = writer.sections.add( ".note" );
note_sec->set_type( SHT_NOTE );
note_sec->set_addr_align( 1 );