[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/11] dump: Reintroduce memory_offset and section_offset
From: |
marcandre . lureau |
Subject: |
[PULL 04/11] dump: Reintroduce memory_offset and section_offset |
Date: |
Fri, 21 Oct 2022 17:05:42 +0400 |
From: Janosch Frank <frankja@linux.ibm.com>
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>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221017083822.43118-5-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.37.3
- [PULL 00/11] Dump patches, marcandre . lureau, 2022/10/21
- [PULL 04/11] dump: Reintroduce memory_offset and section_offset,
marcandre . lureau <=
- [PULL 01/11] dump: Use a buffer for ELF section data and headers, marcandre . lureau, 2022/10/21
- [PULL 02/11] dump: Write ELF section headers right after ELF header, marcandre . lureau, 2022/10/21
- [PULL 03/11] dump: Reorder struct DumpState, marcandre . lureau, 2022/10/21
- [PULL 05/11] dump: Add architecture section and section string table support, marcandre . lureau, 2022/10/21
- [PULL 06/11] s390x: Add protected dump cap, marcandre . lureau, 2022/10/21
- [PULL 07/11] s390x: Introduce PV query interface, marcandre . lureau, 2022/10/21
- [PULL 09/11] s390x: Add KVM PV dump interface, marcandre . lureau, 2022/10/21
- [PULL 08/11] include/elf.h: add s390x note types, marcandre . lureau, 2022/10/21
- [PULL 10/11] s390x: pv: Add dump support, marcandre . lureau, 2022/10/21
- [PULL 11/11] dump/win_dump: limit number of processed PRCBs, marcandre . lureau, 2022/10/21