From a20b790b49b1f11251ec6f1e34c0002a2c97a24e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 30 Apr 2023 20:13:04 +0100 Subject: [PATCH] DRAFT Fix x86_64 M2 elf header to work with debug info. * lib/m2/x86_64/ELF-x86_64.hex2 --- lib/m2/x86_64/ELF-x86_64.hex2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/m2/x86_64/ELF-x86_64.hex2 b/lib/m2/x86_64/ELF-x86_64.hex2 index 32ccc7c7..067ea13a 100644 --- a/lib/m2/x86_64/ELF-x86_64.hex2 +++ b/lib/m2/x86_64/ELF-x86_64.hex2 @@ -45,7 +45,7 @@ &_start 00 00 00 00 # e_entry Address of the entry point %ELF_program_headers>ELF_base 00 00 00 00 # e_phoff Address of program header table -00 00 00 00 00 00 00 00 # e_shoff Address of section header table +%ELF_section_headers>ELF_base 00 00 00 00 # e_shoff Address of section header table 00 00 00 00 # e_flags @@ -54,10 +54,10 @@ 38 00 # e_phentsize size of a program header table 01 00 # e_phnum number of entries in program table -00 00 # e_shentsize size of a section header table -00 00 # e_shnum number of entries in section table +40 00 # e_shentsize size of a section header table +05 00 # e_shnum number of entries in section table -00 00 # e_shstrndx index of the section names +02 00 # e_shstrndx index of the section names :ELF_program_headers