lkml.org 
[lkml]   [2001]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] Re: Linux 2.4.5-ac6
On Thu, 7 Jun 2001, Ivan Kokshaysky wrote:

> 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.

Their docs imply just that.

> 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

You are right.

> about a static binary calling mmap()? ;-)

DU seems to map as low as possible, it would seem. Maybe we could just
do the same for OSF/1 binaries by setting TASK_UNMAPPED_BASE
appropriately?

> BTW, OSF/1 manpages say nothing about first argument of mmap(2) being
> just a hint:

Nope, see:

The new region is placed at the requested address if the requested address
is not null and it is possible to place the region at this address. When
the requested address is null or the region cannot be placed at the
requested address, the MAP_VARIABLE and MAP_FIXED flags control the place-
ment of the region. One of these flags must be selected.

If MAP_VARIABLE is set in the flags parameter:

+ If the requested address is null or if it is not possible for the sys-
tem to place the region at the requested address, the region is placed
at an address selected by the system.

If MAP_FIXED is set in the flags parameter:
[...]

We don't have MAP_VARIABLE but it's expands to zero in OSF/1 anyway.

Maciej

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +

-
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/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:1.880 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site