mirror of
https://github.com/serge1/ELFIO.git
synced 2025-03-15 16:21:02 +00:00
Don't use 'dump' functions in 'anonymizer' example
This commit is contained in:
parent
5f904722f6
commit
8494fd4088
@ -29,7 +29,7 @@ THE SOFTWARE.
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <elfio/elfio_dump.hpp>
|
||||
#include <elfio/elfio.hpp>
|
||||
#include <fstream>
|
||||
#include <random>
|
||||
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user