Re: alpha 2.4.13: fix taso osf emulation

Richard Henderson
2001-10-26T17:04:56Z

On Fri, Oct 26, 2001 at 12:01:10PM +0200, Maciej W. Rozycki wrote:
> The following trivial patch reportedly fixes OSF/1 programs using 31-bit
> addressing. It's already present in the -ac tree; I guess it just got
> lost during a merge. It applies fine to 2.4.13.

This is the patch that Jay Estabrook forwarded me that I rejected
in favour of writing a special arch_get_unmapped_area.

> It used to do so. It breaks things such as dynamic linking of shared
> objects linked at high load address.

Err, how?

> It breaks mmap() in principle, as it shouldn't fail when invoked with
> a non-zero, non-MAP_FIXED, invalid address if there is still address
> space available elsewhere.

No, it doesn't. Or rather, it only does if you only bothered
to search once. IMO one should search thrice: once at addr,
once at TASK_UNMAPPED_BASE, and once at PAGE_SIZE.

r~