From e07864463c4645ba1e5099c7327f49ebfc0e32e7 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Mon, 16 Oct 2023 20:19:00 +0300 Subject: [PATCH] Experimental change of section table alignment to 16 --- elfio/elfio.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elfio/elfio.hpp b/elfio/elfio.hpp index fc5995f..63415a4 100644 --- a/elfio/elfio.hpp +++ b/elfio/elfio.hpp @@ -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; }