Experimental change of section table alignment to 16

This commit is contained in:
Serge Lamikhov-Center 2023-10-16 20:19:00 +03:00
parent 47af3a4ff9
commit e07864463c

View File

@ -832,8 +832,8 @@ class elfio
bool layout_section_table()
{
// Simply place the section table at the end for now
Elf64_Off alignmentError = current_file_pos % 4;
current_file_pos += ( 4 - alignmentError ) % 4;
Elf64_Off alignmentError = current_file_pos % 16;
current_file_pos += 16 - alignmentError;
header->set_sections_offset( current_file_pos );
return true;
}