All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arun Sharma <arun.sharma@intel.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Virtual memory leaking through IA32 emulation layer for mmap
Date: Tue, 09 Mar 2004 20:32:24 +0000	[thread overview]
Message-ID: <404E29D8.8030303@intel.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0403091028060.22838@sutekh.progsoc.uts.edu.au>

H. J. Lu wrote:
> 
> getpagesize () isn't hardcoded to 4K in glibc. You can change it with
> AT_PAGESZ. The problem is the x86 executable is aligned at 4K page
> size, which is specified by the i386 ABI. The dynamic linker in glibc
> won't load the normal x86 executables with a bigger page size. I have
> a glibc patch which allows >4K page size. It may work for you.

I did some very light testing with HJ's glibc patch with this kernel 
change a few months ago and didn't find any obvious breakages. YMMV.

	-Arun

--- 1.21/fs/binfmt_elf.c        Sat May  4 10:05:24 2002
+++ edited/fs/binfmt_elf.c      Fri Jun 13 12:25:10 2003
@@ -184,7 +184,7 @@
         }
         sp -= DLINFO_ITEMS*2;
         NEW_AUX_ENT( 0, AT_HWCAP, hwcap);
-       NEW_AUX_ENT( 1, AT_PAGESZ, ELF_EXEC_PAGESIZE);
+       NEW_AUX_ENT( 1, AT_PAGESZ, PAGE_SIZE);
         NEW_AUX_ENT( 2, AT_CLKTCK, CLOCKS_PER_SEC);
         NEW_AUX_ENT( 3, AT_PHDR, load_addr + exec->e_phoff);
         NEW_AUX_ENT( 4, AT_PHENT, sizeof (struct elf_phdr));


  parent reply	other threads:[~2004-03-09 20:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-08 23:43 Virtual memory leaking through IA32 emulation layer for mmap and Shaun
2004-03-08 23:59 ` Virtual memory leaking through IA32 emulation layer for mmap and munmap H. J. Lu
2004-03-09  0:11 ` Peter Chubb
2004-03-09  0:23 ` David Mosberger
2004-03-09  0:26 ` Virtual memory leaking through IA32 emulation layer for mmap Shaun
2004-03-09  0:57 ` Virtual memory leaking through IA32 emulation layer for mmap and munmap Peter Chubb
2004-03-09  1:04 ` David Mosberger
2004-03-09 20:26 ` Virtual memory leaking through IA32 emulation layer for mmap Arun Sharma
2004-03-09 20:32 ` Arun Sharma [this message]
2004-03-10  3:58 ` Virtual memory leaking through IA32 emulation layer for mmap and munmap n0ano
2004-03-10  5:16 ` Virtual memory leaking through IA32 emulation layer for mmap Shaun
2004-03-10 17:47 ` David Mosberger
2004-03-10 19:35 ` Arun Sharma
2004-03-10 19:48 ` David Mosberger

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=404E29D8.8030303@intel.com \
    --to=arun.sharma@intel.com \
    --cc=linux-ia64@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.