qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dylan <364481568@qq.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] how to run a application compiled for sparc platform using qemu-sparc?
Date: Thu, 9 Feb 2012 14:25:46 +0800	[thread overview]
Message-ID: <tencent_23F2CCBF27C2E839628E6EAC@qq.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1641 bytes --]

             reply	other threads:[~2012-02-09  6:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09  6:25 Dylan [this message]
2012-02-09 12:18 ` [Qemu-devel] how to run a application compiled for sparc platform using qemu-sparc? Paul Brook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_23F2CCBF27C2E839628E6EAC@qq.com \
    --to=364481568@qq.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).