Subject: CVS commit: syssrc/sys/compat/irix
To: None <source-changes@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: source-changes
Date: 02/03/2002 19:28:20
Module Name:	syssrc
Committed By:	manu
Date:		Sun Feb  3 17:28:20 UTC 2002

Modified Files:
	syssrc/sys/compat/irix: irix_syssgi.c

Log Message:
Removed the hack in mapelf to get libX11 loading. The new version assumes
that the load addresses in the section array are increasing, and that no
section in the array overlap with each other. IRIX proably makes the same
assumptions, but this has not been tested.

The key point with relocation is to always use the same offset for each
section. Because userland gets only the load address off the first section, it
has to assume that all the remaining sections kept the same offset with
respect to the first section. By using fixed offset instead of finding
some free space for each section, we can eliminate the libX11 load hack.


To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 syssrc/sys/compat/irix/irix_syssgi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.