mirror of
https://github.com/serge1/ELFIO.git
synced 2025-04-17 08:44:25 +00:00
Make '.shstrtab' section be explicitly aligned to 1
This commit is contained in:
parent
d50e955ca0
commit
69b6177bd6
@ -748,7 +748,7 @@ BOOST_AUTO_TEST_CASE( test_dummy_out_i386_32 )
|
||||
sec = reader.sections[ ".shstrtab" ];
|
||||
|
||||
checkSection( sec, 1, ".shstrtab", SHT_STRTAB, 0,
|
||||
0, 17, 0, 0, 0, 0 );
|
||||
0, 17, 0, 0, 1, 0 );
|
||||
|
||||
sec =reader.sections[ ".note" ];
|
||||
|
||||
@ -810,7 +810,7 @@ BOOST_AUTO_TEST_CASE( test_dummy_out_ppc_32 )
|
||||
sec =reader.sections[ ".shstrtab" ];
|
||||
|
||||
checkSection( sec, 1, ".shstrtab", SHT_STRTAB, 0,
|
||||
0, 17, 0, 0, 0, 0 );
|
||||
0, 17, 0, 0, 1, 0 );
|
||||
}
|
||||
|
||||
|
||||
@ -866,7 +866,7 @@ BOOST_AUTO_TEST_CASE( test_dummy_out_i386_64 )
|
||||
sec =reader.sections[ ".shstrtab" ];
|
||||
|
||||
checkSection( sec, 1, ".shstrtab", SHT_STRTAB, 0,
|
||||
0, 17, 0, 0, 0, 0 );
|
||||
0, 17, 0, 0, 1, 0 );
|
||||
}
|
||||
|
||||
|
||||
@ -916,7 +916,7 @@ BOOST_AUTO_TEST_CASE( test_dummy_out_ppc_64 )
|
||||
sec =reader.sections[ ".shstrtab" ];
|
||||
|
||||
checkSection( sec, 1, ".shstrtab", SHT_STRTAB, 0,
|
||||
0, 17, 0, 0, 0, 0 );
|
||||
0, 17, 0, 0, 1, 0 );
|
||||
|
||||
sec = reader.sections[ ".note" ];
|
||||
|
||||
|
@ -345,6 +345,7 @@ class elfio
|
||||
set_section_name_str_index( 1 );
|
||||
section* shstrtab = sections.add( ".shstrtab" );
|
||||
shstrtab->set_type( SHT_STRTAB );
|
||||
shstrtab->set_addr_align( 1 );
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user