qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] how to run a application compiled for sparc platform using


From: Dylan
Subject: [Qemu-devel] how to run a application compiled for sparc platform using qemu-sparc?
Date: Thu, 9 Feb 2012 14:25:46 +0800

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]