Skip to content

Commit

Permalink
Experimental change of section table alignment to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Serge Lamikhov-Center committed Oct 16, 2023
1 parent 47af3a4 commit e078644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elfio/elfio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e078644

Please sign in to comment.