aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu/dump.h
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2022-10-17 08:38:13 +0000
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-10-24 22:30:10 +0400
commite41ed29bcee5cb16715317bcf290f6b5c196eb0a (patch)
tree8db106528382475ac688d5ec69506b2f7f8175c6 /include/sysemu/dump.h
parente750a7ace492f0b450653d4ad368a77d6f660fb8 (diff)
downloadqemu-e41ed29bcee5cb16715317bcf290f6b5c196eb0a.zip
qemu-e41ed29bcee5cb16715317bcf290f6b5c196eb0a.tar.gz
qemu-e41ed29bcee5cb16715317bcf290f6b5c196eb0a.tar.bz2
dump: Use a buffer for ELF section data and headers
Currently we're writing the NULL section header if we overflow the physical header number in the ELF header. But in the future we'll add custom section headers AND section data. To facilitate this we need to rearange section handling a bit. As with the other ELF headers we split the code into a prepare and a write step. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20221017083822.43118-2-frankja@linux.ibm.com>
Diffstat (limited to 'include/sysemu/dump.h')
-rw-r--r--include/sysemu/dump.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h
index b62513d..9995f65 100644
--- a/include/sysemu/dump.h
+++ b/include/sysemu/dump.h
@@ -177,6 +177,8 @@ typedef struct DumpState {
int64_t filter_area_begin; /* Start address of partial guest memory area */
int64_t filter_area_length; /* Length of partial guest memory area */
+ void *elf_section_hdrs; /* Pointer to section header buffer */
+
uint8_t *note_buf; /* buffer for notes */
size_t note_buf_offset; /* the writing place in note_buf */
uint32_t nr_cpus; /* number of guest's cpu */