elf_ops.h: Be more verbose with ROM blob names

Instead of making the ROM blob name something like:
  phdr #0: /home/petmay01/linaro/qemu-misc-tests/ldmia-fault.axf
make it a little more self-explanatory for people who don't know
ELF format details:
  /home/petmay01/linaro/qemu-misc-tests/ldmia-fault.axf ELF program header segment 0

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201129203923.10622-5-peter.maydell@linaro.org
This commit is contained in:
Peter Maydell 2020-11-29 20:39:23 +00:00
parent 926c9063dc
commit 311ca11e38

View File

@ -544,7 +544,8 @@ static int glue(load_elf, SZ)(const char *name, int fd,
if (mem_size != 0) { if (mem_size != 0) {
if (load_rom) { if (load_rom) {
g_autofree char *label = g_autofree char *label =
g_strdup_printf("phdr #%d: %s", i, name); g_strdup_printf("%s ELF program header segment %d",
name, i);
/* /*
* rom_add_elf_program() takes its own reference to * rom_add_elf_program() takes its own reference to