From acfead04ed095a54d4047da69cd4ebe84f3f2ebe Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 4 Sep 2023 18:31:52 +0200 Subject: [PATCH] DRAFT lib: Make objdump work on binaries in x86-linux. * lib/linux/x86-mes/elf32-header.hex2: Fix header sizes for objdump. --- lib/linux/x86-mes/elf32-header.hex2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/linux/x86-mes/elf32-header.hex2 b/lib/linux/x86-mes/elf32-header.hex2 index 2624453e..1d3ff4ac 100644 --- a/lib/linux/x86-mes/elf32-header.hex2 +++ b/lib/linux/x86-mes/elf32-header.hex2 @@ -39,7 +39,7 @@ 01 # e_ident[EI_DATA] Indicating little endianness 01 # e_ident[EI_VERSION] Indicating original elf -00 # e_ident[EI_OSABI] Set at 0 because none cares +03 # e_ident[EI_OSABI] Set at 3 because FreeBSD is strict 00 # e_ident[EI_ABIVERSION] See above 00 00 00 00 00 00 00 # e_ident[EI_PAD] @@ -48,7 +48,7 @@ 03 00 # e_machine Indicating 32bit x86 01 00 00 00 # e_version Indicating original elf -&ELF_text # e_entry Address of the entry point +&_start # e_entry Address of the entry point %ELF_program_headers>ELF_base # e_phoff Address of program header table %ELF_section_headers>ELF_base # e_shoff Address of section header table @@ -60,9 +60,9 @@ 01 00 # e_phnum number of entries in program table 28 00 # e_shentsize size of a section header table -07 00 # e_shnum number of entries in section table +05 00 # e_shnum number of entries in section table -04 00 # e_shstrndx index of the section names +02 00 # e_shstrndx index of the section names # @34 00 00 00 00