All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Bellard <fabrice.bellard@free.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Alpha update
Date: Mon, 12 May 2003 00:27:26 +0200	[thread overview]
Message-ID: <3EBECE4E.10501@free.fr> (raw)
In-Reply-To: 3EBE4BBF.1020403@free.fr

Fabrice Bellard wrote:
>  > However, there are still problems with the ELF loader. It seems like
>  > some binaries want a mmaping at an offset that is not divisible by the
>  > page size:
>  >
>  > ./qemu -d /usr/local/qemu-i386/bin/ls-i386
>  > [...]
>  > mmap4k(start = 0x8052000, length = 592, prot = 0x3 (rw),
>  >        flags = 0x2102 (MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE),
>  >        fd = 4, offset = 39040)
>  >
>  > 39040 % 4096 == 2176
>  >
>  > Alpha Linux 2.5.69 doesn't seem to handle unaligned offsets. Do other
>  > architecures? Or earlier versions? The em86 code doesn't seem to care
>  > about this at all. The only thing to handle this I can think of is to
>  > mmap anonymously and use read() to fill in the data... or am I missing
>  > something?

I don't see how it is possible in this particular case: the ELF file is 
built to be mapped directly in memory so it is a bug in the ELF loader 
logic.

Note: The 2.4.x kernel also refuses unaligned offsets on i386.

Fabrice.

  parent reply	other threads:[~2003-05-11 22:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-11  1:41 [Qemu-devel] Alpha update Falk Hueffner
2003-05-11 13:10 ` Fabrice Bellard
2003-05-11 18:40   ` David S. Miller
2003-05-11 22:27   ` Fabrice Bellard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-30 11:34 Falk Hueffner
2003-04-30 10:48 ` David S. Miller
2003-04-30 14:01   ` David S. Miller
2003-05-01 19:27     ` Falk Hueffner
2003-05-01 18:48       ` David S. Miller
2003-05-03 17:29         ` fabrice.bellard
2003-05-03 16:32           ` David S. Miller

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=3EBECE4E.10501@free.fr \
    --to=fabrice.bellard@free.fr \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.