[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] XXX lib: Make objdump work on binaries in riscv64
From: |
Ekaitz Zarraga |
Subject: |
[PATCH] XXX lib: Make objdump work on binaries in riscv64 |
Date: |
Mon, 04 Sep 2023 22:07:08 +0000 |
>From ffdb7c3bda606909b729dc7d80c2ff3cf3bcef0d Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
Date: Tue, 5 Sep 2023 00:05:17 +0200
Subject: [PATCH] XXX lib: Make objdump work on binaries in riscv64
XXX: do the same for other architectures
* lib/linux/riscv64-mes/elf32-header.hex2: Fix header sizes for objdump.
---
lib/linux/riscv64-mes/elf64-header.hex2 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/linux/riscv64-mes/elf64-header.hex2
b/lib/linux/riscv64-mes/elf64-header.hex2
index e342a29d..53bd0c65 100644
--- a/lib/linux/riscv64-mes/elf64-header.hex2
+++ b/lib/linux/riscv64-mes/elf64-header.hex2
@@ -40,8 +40,8 @@
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
-00 # e_ident[EI_ABIVERSION] See above
+03 # e_ident[EI_OSABI] Set at 3 because FreeBSD is
strict
+00 # e_ident[EI_ABIVERSION] Set at 0 because none
cares
00 00 00 00 00 00 00 # e_ident[EI_PAD]
@@ -51,7 +51,7 @@ f3 00 # e_machine Indicating AMD64
01 00 00 00 # e_version Indicating original elf
# 0x18
-&ELF_text 00 00 00 00 # e_entry Address of the entry point
+&_start 00 00 00 00 # e_entry Address of the entry point (Number of
bytes this header is + Base Address)
%ELF_program_headers>ELF_base # e_phoff Address of program header table
00 00 00 00
@@ -66,9 +66,9 @@ f3 00 # e_machine Indicating AMD64
01 00 # e_phnum number of entries in program table
40 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
# @40
:ELF_program_headers
--
2.41.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] XXX lib: Make objdump work on binaries in riscv64,
Ekaitz Zarraga <=