Re: [patch] Re: Linux 2.4.5-ac6

Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Thu, 7 Jun 2001 21:20:15 +0400


On Wed, Jun 06, 2001 at 03:09:11PM +0200, Maciej W. Rozycki wrote:
> $ odump -D /usr/bin/X11/real-netscape | grep FLAGS
> FLAGS: 0x40000001
> $ odump -D /usr/bin/X11/xterm | grep FLAGS
> FLAGS: 0x00000001
>
> A wild guess: the 32-bit flag is bit 30.

Thanks for the info. I dug a bit that OSF stuff (on Compaq's testdrive
boxes), and found no traces of 32-bit addressing support in the OSF kernel.
Everything seems to be done by dynamic linker (i.e. /sbin/loader) in user
space.

> A second attempt (after a bit of searching in /usr/include):
>
> $ grep ADDRESSES /usr/include/elf_mips.h
> #define RHF_USE_31BIT_ADDRESSES 0x40000000

Same in /usr/include/coff_dyn.h, True64 v5.1.

> So what is needed is already in place and ready to use.

I don't think so. The EF_ALPHA_32BIT in the ELF header flags
is elegant and easy to use. Unlike this, RHF_USE_31BIT_ADDRESSES is
not in the headers, but somewhere in .dynamic section. And what
about a static binary calling mmap()? ;-)
BTW, OSF/1 manpages say nothing about first argument of mmap(2) being
just a hint:
...
PARAMETERS

addr Specifies the starting address of the new region (truncated to a
page boundary).

len Specifies the length in bytes of the new region (rounded up to a
page boundary).
...

Ivan.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/