Re: Process address space

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

 



"WLI" == William Lee Irwin <wli@holomorphy.com> writes:
WLI> Actually, it's an interaction with the kernel. The ELF .interp is loaded
WLI> by default at 0x40000000 when formatted as a DSO. Formatting the .interp

On Thu, Jan 10, 2002 at 02:24:07PM +0200, Momchil Velikov wrote:
> How come ? The kernel just searches for mmap space starting at
> TASK_UNMAPPED_BASE == TASK_SIZE / 3. It manages the
> [TASK_UNMAPPED_BASE, TASK_SIZE) range by a simple address ordered
> first fit algorithm.  It just doesn't leave enough space for sbrk,
> _for no good reason_. (at least as far as I can tell).

Yes, that is how and why the kernel makes its decision.


On Thu, Jan 10, 2002 at 02:24:07PM +0200, Momchil Velikov wrote:
> Here's the program headers of  /lib/ld-2.2.4.so
>   LOAD           0x000000 0x00000000 0x00000000 0x13ce0 0x13ce0 R E 0x1000
>   LOAD           0x013ce0 0x00014ce0 0x00014ce0 0x002f8 0x006f8 RW  0x1000
>   DYNAMIC        0x013d98 0x00014d98 0x00014d98 0x000b0 0x000b0 RW  0x4
> I don't see 0x40000000 here.

The decision is made by the kernel; DSO's necessarily do not specify
placement, and if they did, it would be a userspace decision.


Cheers,
Bill
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux