diff options
author | Janosch Frank <frankja@linux.ibm.com> | 2022-10-17 11:32:10 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-10-24 22:30:10 +0400 |
commit | 9b72224f44612ddd5b434a1bccf79346946d11da (patch) | |
tree | fa41daa7c83b85a4fb7cb4d77de35215c2c181a1 /include/sysemu/dump.h | |
parent | 13fd417ddc81a1685c6a8f4e1c80bbfe7150f164 (diff) |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h index 9ed811b313..38ccac7190 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 */ |