]> git.proxmox.com Git - mirror_qemu.git/commit - dump.c
dump: add API to write elf notes to buffer
authorqiaonuohan <qiaonuohan@cn.fujitsu.com>
Tue, 18 Feb 2014 06:11:29 +0000 (14:11 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 28 Feb 2014 16:49:02 +0000 (11:49 -0500)
commit4835ef7784502c231f243c3133054850d23dd837
tree86a50bc6317e513f5df288a7b0555f552d0cc61f
parent5d31babe5c7d854d6b8470bc9fa67a698926e65d
dump: add API to write elf notes to buffer

the function can be used by write_elf32_notes/write_elf64_notes to write notes
to a buffer. If fd_write_vmcore is used, write_elf32_notes/write_elf64_notes
will write elf notes to vmcore directly. Instead, if buf_write_note is used,
elf notes will be written to opaque->note_buf at first.

Signed-off-by: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
dump.c