This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mapping shared libraries at fixed address...


On 18/01/06, H. J. Lu <hjl@lucon.org> wrote:
> On Wed, Jan 18, 2006 at 12:21:47AM -0500, Far? wrote:
> > So as to be able to mmap BIG data files on i386, I would like to get
> > the shared libraries out of the way. With no userspace specification,
> > ld.so and libc.so are mmap()ed by the kernel at one third of the
> > address space (starting at 0x55555000), which means that I can't mmap
> > contiguously a file larger than 1.6GB approximately (less than I
>
> That is what x86-64 is for.
>
Yes, but I'd like to buy our farm of thousands of i386 servers many a
month of life extension. The price difference between buying thousands
of amd64 machines now or then can be quite substantial.

It seems that loading libraries at a fixed address ought to be very
doable, and I can do the C coding part of it just fine. However, I
admit I'm baffled by the ld script hacking part of it. And if
possible, I'd like to do thing Right(tm) so as to be able to propose a
patch for official inclusion.

[ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ]
Guns & bullets don't kill people -- blood loss and organ damage kills people.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]