Re: [patch] Re: Linux 2.4.5-ac6

Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Wed, 6 Jun 2001 09:37:00 +0400


On Tue, Jun 05, 2001 at 08:32:50PM +0200, Maciej W. Rozycki wrote:
> ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
>
> to support 32-bit binaries. So if the personality is set appropriately
> for netscape, mmap() should work fine as is, placing maps in the low 4GB.

This works perfectly with ELF, but unfortunately netscape isn't recognized
as 32 bit binary.

> No need to patch arch_get_unmapped_area(), but OSF/1 compatibility code
> might need fixing. I suppose an OSF/1 binary must have an appropriate
> flag set in its header after building with the -taso option so that the
> system knows the binary wants 32-bit addressing.

I'm not sure if COFF headers have such flag at all. I'll check this.

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/