From: "David S. Miller" <davem@davemloft.net>
To: sparclinux@vger.kernel.org
Subject: Re: mmap breakage
Date: Mon, 06 Dec 2004 05:23:53 +0000 [thread overview]
Message-ID: <20041205212353.7156b495.davem@davemloft.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0412032354010.1963@bobcat>
On Sun, 5 Dec 2004 23:30:53 -0500 (EST)
Jurij Smakov <jurij@wooyd.org> wrote:
> So now the question is why ld-linux.so.2 on sparc64 is mapped at
> 0x08000000 instead of something higher, like 0x80000000 on i386? This
> actually limits the size of an executable plus all the shared libraries
> required by it (if I understand it correctly) to 128MB. Can this limit be
> easily modified, or are there some special architectural considerations,
> preventing that?
It only limits the shared libraries as you state for the "medlow"
code model which restricts the binary to the low 32-bits of the
address space.
For the other 64-bit code models, we have large chunks of the rest
of the 64-bit address space in which to map things.
In fact, actually, PIC code such as shared libraries should be
mapped in the upper parts of the 64-bit address space. The kernel
should start trying to map things for the user at 0xFFFFF80000000000
unless the user specifies a specific address.
Also the stack starts way up high in the 64-bit address space as well,
and this is for all code models.
We could put ld-linux.so.2 somewhere else, that's not too hard. I
would suggest putting it at that 0xfffff80000000000 address I quoted
above since that is where the rest of the shared objects are going
to end up anyways.
A good person to ask about the logistics of moving ld-linux.so.2 somewhere
else would be Jakub Jelinek <jakub@redhat.com>
next prev parent reply other threads:[~2004-12-06 5:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-04 5:22 mmap breakage Jurij Smakov
2004-12-04 23:13 ` Richard Mortimer
2004-12-04 23:16 ` Richard Mortimer
2004-12-06 4:30 ` Jurij Smakov
2004-12-06 5:23 ` David S. Miller [this message]
2004-12-07 6:00 ` Jurij Smakov
2004-12-07 6:06 ` David S. Miller
2004-12-07 6:11 ` Keith M Wesolowski
2004-12-07 6:20 ` David S. Miller
2004-12-07 6:31 ` Jurij Smakov
2004-12-07 7:47 ` David S. Miller
2004-12-07 8:24 ` Jakub Jelinek
2004-12-07 15:38 ` Jurij Smakov
2004-12-08 0:54 ` Richard Mortimer
2004-12-09 5:24 ` David S. Miller
2004-12-09 7:34 ` 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=20041205212353.7156b495.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=sparclinux@vger.kernel.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.