qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu/pc-bios README openbios-sparc32 openbios-s...
Date: Mon, 16 Apr 2007 16:30:17 +0100	[thread overview]
Message-ID: <20070416153017.GC1402@networkno.de> (raw)
In-Reply-To: <f43fc5580704160801m4b362b47o6f7a4313841ada4a@mail.gmail.com>

Blue Swirl wrote:
> On 4/16/07, Daniel Jacobowitz <drow@false.org> wrote:
> >On Sun, Apr 15, 2007 at 10:37:08PM +0300, Blue Swirl wrote:
> >> On 4/15/07, Paul Brook <paul@codesourcery.com> wrote:
> >> > On Sunday 15 April 2007 20:11, Blue Swirl wrote:
> >> > > > Probably the linker is making sure the file offset and VMA are the 
> >same
> >> > > > modulo the page size.
> >> > >
> >> > > But that would be one huge file, as the VMA is near 2TB:
> >> >
> >> > I said *modulo the pace size* :-)
> >> > Lets say ld thinks the page size for your system is 1Mb (nor an 
> >unreasonable
> >> > assumption).  The vma of .text is aligned on a 1Mb boundary. In order 
> >to
> >> > allow loading via mmap, the location of .text within the file must 
> >also be
> >> > aligned on a 1Mb boundary. It can't put it at address zero because the 
> >ELF
> >> > headers get in the way, so the first viable location is 1Mb into the 
> >file.
> >>
> >> Nice theory (and I missed the modulo arithmetic, sorry), but on
> >> Ultrasparc the page sizes available are 8k, 64k, 4M and 256M.
> >
> >#define ELF_MAXPAGESIZE 0x100000
> >
> >BFD and GNU ld think it's 1MB.
> 
> I stand corrected. Is there anything that can be done to reduce this waste?

See ld's -z max-page-size and -z common-page-size.


Thiemo

  parent reply	other threads:[~2007-04-16 15:34 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-15  6:38 [Qemu-devel] qemu/pc-bios README openbios-sparc32 openbios-s Blue Swirl
2007-04-15 12:42 ` Stefan Weil
2007-04-15 15:03   ` Blue Swirl
2007-04-15 19:01     ` Paul Brook
2007-04-15 19:11       ` Blue Swirl
2007-04-15 19:20         ` Paul Brook
2007-04-15 19:37           ` Blue Swirl
2007-04-15 22:08             ` Daniel Jacobowitz
2007-04-16 15:01               ` Blue Swirl
2007-04-16 15:13                 ` Daniel Jacobowitz
2007-04-16 16:23                   ` Blue Swirl
2007-04-16 15:30                 ` Thiemo Seufer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-04-16 17:41 Blue Swirl
2007-06-28  7:28 Blue Swirl
2007-06-28 13:49 ` Johannes Schindelin
2007-06-28 14:00   ` Blue Swirl
2007-06-28 14:08     ` Johannes Schindelin
2007-08-11  8:16 Blue Swirl
2007-11-14 19:41 Blue Swirl
2007-12-11 19:33 Blue Swirl

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=20070416153017.GC1402@networkno.de \
    --to=ths@networkno.de \
    --cc=blauwirbel@gmail.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).