qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Laurent Vivier <laurent@vivier.eu>, qemu-devel@nongnu.org
Cc: Riku Voipio <riku.voipio@iki.fi>, Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] linux-user: fix ELF load alignment error
Date: Mon, 16 Jul 2018 16:46:16 -0700	[thread overview]
Message-ID: <ad6f21d0-430e-7d3c-b2c7-e1c00c862558@linaro.org> (raw)
In-Reply-To: <20180716195349.29959-1-laurent@vivier.eu>

On 07/16/2018 12:53 PM, Laurent Vivier wrote:
> When we try to use some targets on ppc64, it can happen the target
> doesn't support the host page size to align ELF load sections and
> fails with:
> 
>   ELF load command alignment not page-aligned
> 
> Since commit a70daba3771 ("linux-user: Tell guest about big host
> page sizes") the host page size is used to align ELF sections, but
> this doesn't work if the alignment required by the load section is
> smaller than the host one.  For these cases, we continue to use the
> TARGET_PAGE_SIZE instead of the host one.
> 
> I have tested this change on ppc64, and it fixes qemu linux-user for:
>   s390x, m68k, i386, arm, aarch64, hppa
> and I have tested it doesn't break the following targets:
>   x86_64, mips64el, sh4
> mips and mipsel abort, but I think for another reason.
...
>      loaddr = -1, hiaddr = 0;
> +    info->alignment |=  0;

Plain assignment for initialization.

Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~

      reply	other threads:[~2018-07-16 23:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-16 19:53 [Qemu-devel] [PATCH] linux-user: fix ELF load alignment error Laurent Vivier
2018-07-16 23:46 ` Richard Henderson [this message]

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=ad6f21d0-430e-7d3c-b2c7-e1c00c862558@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=agraf@suse.de \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /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).