bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libio/libioP.h:ALLOC_BUF() unconditionally uses mmap()


From: Wayne Whitney
Subject: Re: libio/libioP.h:ALLOC_BUF() unconditionally uses mmap()
Date: Mon, 17 Dec 2001 16:19:12 -0800 (PST)

On Mon, 17 Dec 2001, Wayne Whitney wrote:

> P.S.  On the separate topic of modifying MAGMA instead of glibc or the
> kernel, it occured to me that since MAGMA is linked statically, it could
> just redefine __mmap() to request a higher address.  

I figured out how to make this work, I was off by one character.  I needed
to do s/__NR_mmap/__NR_mmap2, because on the Linux kernel, mmap2 is the
version of the system call that takes 6 arguments.  Mmap just takes a
single argument, a pointer to a structure of six longs, the six real
arguments.

Then this method works for compiling a static binary with a large heap
address space!  Now I just need to figure out what to do in the
dynamically linked case.  :-)

Cheers, Wayne





reply via email to

[Prev in Thread] Current Thread [Next in Thread]