mirror of
https://github.com/serge1/ELFIO.git
synced 2025-01-29 21:32:44 +00:00
Arrange local symbols prior 'save()'
This commit is contained in:
parent
9c739b49a0
commit
9e0d601cac
@ -104,6 +104,12 @@ int main( void )
|
||||
char descr[6] = { 0x31, 0x32, 0x33, 0x34, 0x35, 0x36 };
|
||||
note_writer.add_note( 0x01, "Never easier!", descr, sizeof( descr ) );
|
||||
|
||||
// We don't use local symbols here. There is no need to rearrange them.
|
||||
// But, for the completeness, we do this just prior 'save'
|
||||
syma.arrange_local_symbols( [&]( Elf_Xword first, Elf_Xword second ) {
|
||||
rela.swap_symbols( first, second );
|
||||
} );
|
||||
|
||||
// Create ELF object file
|
||||
writer.save( "hello.o" );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user