[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 04/10] dump: Reintroduce memory_offset and section_offset
From: |
Janosch Frank |
Subject: |
[PATCH v6 04/10] dump: Reintroduce memory_offset and section_offset |
Date: |
Mon, 17 Oct 2022 08:38:16 +0000 |
section_offset will later be used to store the offset to the section
data which will be stored last. For now memory_offset is only needed
to make section_offset look nicer.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
dump/dump.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dump/dump.c b/dump/dump.c
index b168a25321..626f7b2fd0 100644
--- a/dump/dump.c
+++ b/dump/dump.c
@@ -1876,6 +1876,8 @@ static void dump_init(DumpState *s, int fd, bool
has_format,
s->phdr_offset = s->shdr_offset + sizeof(Elf32_Shdr) * s->shdr_num;
s->note_offset = s->phdr_offset + sizeof(Elf32_Phdr) * s->phdr_num;
}
+ s->memory_offset = s->note_offset + s->note_size;
+ s->section_offset = s->memory_offset + s->total_size;
return;
--
2.34.1
- [PATCH v6 00/10] dump: Add arch section and s390x PV dump, Janosch Frank, 2022/10/17
- [PATCH v6 01/10] dump: Use a buffer for ELF section data and headers, Janosch Frank, 2022/10/17
- [PATCH v6 06/10] s390x: Add protected dump cap, Janosch Frank, 2022/10/17
- [PATCH v6 04/10] dump: Reintroduce memory_offset and section_offset,
Janosch Frank <=
- [PATCH v6 05/10] dump: Add architecture section and section string table support, Janosch Frank, 2022/10/17
- [PATCH v6 07/10] s390x: Introduce PV query interface, Janosch Frank, 2022/10/17
- [PATCH v6 09/10] s390x: Add KVM PV dump interface, Janosch Frank, 2022/10/17
- [PATCH v6 02/10] dump: Write ELF section headers right after ELF header, Janosch Frank, 2022/10/17