diff --git a/examples/anonymizer/anonymizer.cpp b/examples/anonymizer/anonymizer.cpp index a76bfd2e5e28d039939ec288d0aa5c7e8e4b701a..b891c81cbf2b145b59448b57c05ae8b3dcf4f997 100644 --- a/examples/anonymizer/anonymizer.cpp +++ b/examples/anonymizer/anonymizer.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include <string> #include <iostream> -#include <elfio/elfio_dump.hpp> +#include <elfio/elfio.hpp> #include <fstream> #include <random> diff --git a/examples/writer/writer.cpp b/examples/writer/writer.cpp index e06adc4fc0644dfd5cec582019d9473a7cf0da4e..0f9e6d7b625b3c9505a9a1abc9c4da6298f7beed 100644 --- a/examples/writer/writer.cpp +++ b/examples/writer/writer.cpp @@ -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 );