I want to run a application using qemu-sparc,for example "$qemu-sparc
hello",where hello is an application compiled for sparc platform. And the host
os and architecture are linux and x86. But it catches an error when loading elf
file "hello",the spesific error is as follow:
// in load_elf_image function
target_mmap(abi_ulong start, abi_ulong len, int prot, int flags, int
fd,abi_ulong offset)
{
... ...
/*offset=ox2bf0*/
if(offset & ~TARGET_PAGE_MASK) /*the condition is true */
errno=EINVAL;
}
the results of readelf -l hello are as follow:
program headers:
TYPE offset virtAddr phyAddr FileSiz
MemSiz
LOAD 0x054 0x4000 0000 0x4000 0000 0x02bf0 0x02bf0
In additon, what is mean of the opiton "-B offset" for qemu-sparc , should I
set a value for it ,for example :
$qemu-sparc hello -B 0x8048000