linux-user/elfload: Tidy fill_note_info and struct elf_note_info
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 26 Feb 2024 20:49:21 +0000 (10:49 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 18:48:02 +0000 (08:48 -1000)
commit6a202944354d077141bb97a21d35f8ab16b6a127
treee2fbc7858bb50da4f21c7212930d01a13e600a82
parentb1beea6ba5c3eb9938897ae1c4042515c3e4b0c2
linux-user/elfload: Tidy fill_note_info and struct elf_note_info

In fill_note_info, there were unnecessary checks for
success of g_new/g_malloc.  But these structures do not
need to be dyamically allocated at all, and can in fact
be statically allocated within the parent structure.

This removes all error paths from fill_note_info, so
change the return type to void.

Change type of signr to match both caller (elf_core_dump)
and callee (fill_prstatus), which both use int for signr.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c