vma->vm_end > 0x60000000

vma->vm_end > 0x60000000

Post by William Lee Irwin II » Sat, 08 Dec 2001 12:20:11




> In fs/proc/array.c:proc_pid_statm() there is this test block:

>     if (vma->vm_flags & VM_EXECUTABLE)
>        trs += pages;   /* text */
>     else if (vma->vm_flags & VM_GROWSDOWN)
>        drs += pages;   /* stack */
>     else if (vma->vm_end > 0x60000000)
>        lrs += pages;   /* library */
>     else
>        drs += pages;

> Is there any special reason for the hardcoded constant `0x60000000'?
> In the Linux/m68k tree, we use TASK_UNMAPPED_BASE instead. But I don't know
> why.

I think this is an old x86 load address for an ELF interpreter. Would
you be happy with ELF_ET_DYN_BASE? I made a fairly small patch that
deals with that.

Cheers,
Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

vma->vm_end > 0x60000000

Post by Andreas Schwa » Sat, 08 Dec 2001 17:40:10




|> > In fs/proc/array.c:proc_pid_statm() there is this test block:
|> >
|> >     if (vma->vm_flags & VM_EXECUTABLE)
|> >          trs += pages;   /* text */
|> >     else if (vma->vm_flags & VM_GROWSDOWN)
|> >          drs += pages;   /* stack */
|> >     else if (vma->vm_end > 0x60000000)
|> >          lrs += pages;   /* library */
|> >     else
|> >          drs += pages;
|> >
|> > Is there any special reason for the hardcoded constant `0x60000000'?
|> > In the Linux/m68k tree, we use TASK_UNMAPPED_BASE instead. But I don't know
|> > why.
|>
|> I think this is an old x86 load address for an ELF interpreter.

No, it is a leftover from the a.out times.  IMHO it should be removed
completely.  "Library pages" has no meaning for ELF.

Andreas.

--
Andreas Schwab                                  "And now for something

SuSE Labs, SuSE GmbH, Schanz?ckerstr. 10, D-90443 Nrnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

vma->vm_end > 0x60000000

Post by Albert D. Cahala » Sun, 09 Dec 2001 05:20:18


Quote:> No, it is a leftover from the a.out times.  IMHO it should be removed
> completely.  "Library pages" has no meaning for ELF.

"Library pages" == unmodified execute-only pages mapped from a
file that is not the executable.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

1. <><><> MOUNTING EXTENDED PARTITION <><><>

I have a 10 GB UDMA IDE drive formatted with Windows.  The first partition
is FAT32, and the second is NTFS.  I can successfully mount the first, but
not the second.  Any ideas?

Suse 7.2 on i86
the drive is mounted on /dev/hdc, and I CAN see hda1, but not hda2

2. make xconfig error

3. Wanted: <><><> Unix Specialist <><><>

4. DCE support in Solaris?

5. LILO help <><><><><><>

6. mmap question

7. >>---> Software Jobs! >>--->

8. SCO5: Adding third SCSI disk, 2nd disk devices go away

9. Win95/IPX -> IP ->PPP ->Linux ->Novell 3.12

10. <Alt>+<key> = <Esc><key> ?

11. A <= ping => B => OK A <= TCP => B => FAILS

12. FTP problem: linux>>win/SGI slow win/SGI>>linux fast

13. fixing localhost -> DNS Server -> NAMED -> NDC -> NOTFOUND