Fix usage instructions; Symbol section info - reduced

This commit is contained in:
Serge Lamikhov-Center 2020-08-11 22:37:24 -07:00
parent 12b313642e
commit 5cf544283b

View File

@ -7,7 +7,7 @@
* 2. Execute result file write_obj
* ./write_obj
* 3. Link output file hello.o:
* ld -m elf x64 -o hello hello.o
* ld -o hello hello.o
* 4. Run the result file:
* ./hello
*/
@ -60,7 +60,7 @@ int main( void )
// Create symbol table section
section* sym_sec = writer.sections.add( ".symtab" );
sym_sec->set_type ( SHT_SYMTAB );
sym_sec->set_info ( 2 );
sym_sec->set_info ( 1 );
sym_sec->set_addr_align( 0x4 );
sym_sec->set_entry_size( writer.get_default_entry_size( SHT_SYMTAB ) );
sym_sec->set_link ( str_sec->get_index() );