From 1650f0caaefcd8bc15204e29f0c17ad5a6bdcf51 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] lib: Fix x86_64 M2 elf header to work with debug info. * lib/m2/x86_64/ELF-x86_64.hex2: Fix e_shoff, e_shentsize, e_shstrndx. --- lib/m2/x86_64/ELF-x86_64.hex2 | 9 +++++---- 1 file changed, 5 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..ef0e0bc4 100644 --- a/lib/m2/x86_64/ELF-x86_64.hex2 +++ b/lib/m2/x86_64/ELF-x86_64.hex2 @@ -1,5 +1,6 @@ ### Copyright (C) 2016 Jeremiah Orians ### Copyright (C) 2017 Jan Nieuwenhuizen +### Copyright (C) 2023 Andrius Štikonas ### This file is part of M2-Planet. ### ### M2-Planet is free software: you can redistribute it and/or modify @@ -45,7 +46,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 +55,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