Print something other than just "invalid ELF file or insufficient
memory" when the specific error is that a specific memory segment is
not available.
dprintf("Segment at 0x%08x len 0x%08x\n", ph->p_paddr, ph->p_memsz);
if (syslinux_memmap_type(amap, ph->p_paddr, ph->p_memsz) != SMT_FREE) {
- dprintf("Region not free!\n");
+ printf("Memory segment at 0x%08x (len 0x%08x) is unavailable\n",
+ ph->p_paddr, ph->p_memsz);
goto bail; /* Memory region unavailable */
}