]> git.proxmox.com Git - mirror_qemu.git/commit
dump: Use a buffer for ELF section data and headers
authorJanosch Frank <frankja@linux.ibm.com>
Mon, 17 Oct 2022 08:38:13 +0000 (08:38 +0000)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 24 Oct 2022 18:30:10 +0000 (22:30 +0400)
commite41ed29bcee5cb16715317bcf290f6b5c196eb0a
tree8db106528382475ac688d5ec69506b2f7f8175c6
parente750a7ace492f0b450653d4ad368a77d6f660fb8
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>
dump/dump.c
include/sysemu/dump.h