Re: [PATCH 2/5] dump: Split write of section headers and data and add a prepare step

2022-03-11 Thread Richard Henderson
On 3/10/22 03:16, Janosch Frank wrote: -static void write_elf_section(DumpState *s, int type, Error **errp) +static size_t write_elf_section_hdr_zero(DumpState *s, void *buff) { -Elf32_Shdr shdr32; -Elf64_Shdr shdr64; -int shdr_size; -void *shdr; -int ret; +Elf32_Shdr *s

[PATCH 2/5] dump: Split write of section headers and data and add a prepare step

2022-03-10 Thread Janosch Frank
By splitting the writing of the section headers and (future) section data we prepare for the addition of a string table section and architecture sections. Signed-off-by: Janosch Frank --- dump/dump.c | 112 -- include/sysemu/dump.h | 4 ++ 2 fi