Add clarification comment on base of question #49

This commit is contained in:
Serge Lamikhov-Center 2020-10-22 12:12:12 +03:00
parent f02366804f
commit bd520a5e83

View File

@ -98,7 +98,11 @@ int main( void )
char descr[6] = { 0x31, 0x32, 0x33, 0x34, 0x35, 0x36 };
note_writer.add_note( 0x01, "Never easier!", descr, sizeof( descr ) );
// Setup entry point
// Setup entry point. Usually, a linker sets this address on base of
// _start label.
// In this example, the code starts at the first address of the
// 'text_seg' segment. Therefore, the start address is set
// to be equal to the segment location
writer.set_entry( 0x08048000 );
// Create ELF file