All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jurij Smakov <jurij@wooyd.org>
To: sparclinux@vger.kernel.org
Subject: Re: mmap breakage
Date: Mon, 06 Dec 2004 04:30:53 +0000	[thread overview]
Message-ID: <Pine.LNX.4.61.0412052314550.5504@bobcat> (raw)
In-Reply-To: <Pine.LNX.4.61.0412032354010.1963@bobcat>

On Sat, 4 Dec 2004, Richard Mortimer wrote:

> I guess that this isn't really what you want to hear but it does 
> describe why the behaviour exists. I don't have any magic suggestions as
> to how to fix it - sorry.
>
> Richard

Hi,

Thanks for the input. I have forwarded the question to debian-glibc [0], 
asking whether they consider it glibc or kernel problem. So far I have 
received response from Daniel Jacobowitz [1]:

> ld-linux ought to check.  In this particular case, it doesn't.  But if
> it did check, the only thing it could do would be to print an error
> message and quit.  The executable _must_ be mapped at the linked
> address (since it isn't position independent).  ld can't move itself.
> The kernel picked where to load ld; it would be nice if it picked
> somewhere more useful than 0x08000000 on your architecture.  On i386,
> it picks:
>
> 80000000-80016000 r-xp 00000000 09:00 11993980   /lib/ld-2.3.2.so
> 80016000-80017000 rw-p 00015000 09:00 11993980   /lib/ld-2.3.2.so
> 80017000-8006e000 rw-p 80017000 00:00 0 
> 
> which gives you up to 2GB for the executable.

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?

[0] http://lists.debian.org/debian-glibc/2004/12/msg00057.html
[1] http://lists.debian.org/debian-glibc/2004/12/msg00060.html

Best regards,

Jurij Smakov                                        jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/                   KeyID: C99E03CC

  parent reply	other threads:[~2004-12-06  4:30 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 [this message]
2004-12-06  5:23 ` David S. Miller
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=Pine.LNX.4.61.0412052314550.5504@bobcat \
    --to=jurij@wooyd.org \
    --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.