[committed] Fix PR pch/14940 on hppa hpux and linux

Daniel Jacobowitz drow@false.org
Tue Nov 30 22:48:00 GMT 2004


On Mon, Nov 29, 2004 at 10:25:25PM -0500, John David Anglin wrote:
> The following change fixes the pch failures including largefile.c
> under hppa hpux11.11 and hppa-linux.
> 
> There doesn't seem to be any way to map to a consistent start address
> on hppa-linux using MAP_PRIVATE.  According the the PA-RISC kernel
> team, this is due to the strict aliasing requirements of the PA-RISC
> hardware.  Thus, I adopted a brute force fix of doing an anonymous
> MAP_PRIVATE and copying the data to this mapping.  This still requires
> picking a suitable spot.  It's also necessary to pick a good spot
> on hppa64-hpux as default kernel placement stills fails largefile.c.
> It allocates from top down and the default placement is too high for
> some unknown reason in the largefile.c test.

You can't even map file data at an arbitrary offset using MAP_FIXED, I
guess?

-- 
Daniel Jacobowitz



More information about the Gcc-patches mailing list