aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu/dump.h
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2022-10-17 11:32:10 +0000
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-10-24 22:30:10 +0400
commit9b72224f44612ddd5b434a1bccf79346946d11da (patch)
treefa41daa7c83b85a4fb7cb4d77de35215c2c181a1 /include/sysemu/dump.h
parent13fd417ddc81a1685c6a8f4e1c80bbfe7150f164 (diff)
downloadqemu-9b72224f44612ddd5b434a1bccf79346946d11da.zip
qemu-9b72224f44612ddd5b434a1bccf79346946d11da.tar.gz
qemu-9b72224f44612ddd5b434a1bccf79346946d11da.tar.bz2
dump: Add architecture section and section string table support
Add hooks which architectures can use to add arbitrary data to custom sections. Also add a section name string table in order to identify section contents Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20221017113210.41674-1-frankja@linux.ibm.com>
Diffstat (limited to 'include/sysemu/dump.h')
-rw-r--r--include/sysemu/dump.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h
index 9ed811b..38ccac7 100644
--- a/include/sysemu/dump.h
+++ b/include/sysemu/dump.h
@@ -180,6 +180,9 @@ typedef struct DumpState {
hwaddr note_offset;
void *elf_section_hdrs; /* Pointer to section header buffer */
+ void *elf_section_data; /* Pointer to section data buffer */
+ uint64_t elf_section_data_size; /* Size of section data */
+ GArray *string_table_buf; /* String table data buffer */
uint8_t *note_buf; /* buffer for notes */
size_t note_buf_offset; /* the writing place in note_buf */