ld.so: be more mmap()-behaviour-independent

. if the layout of virtual address regions as returned
	  by mmap() without a location hint changes, ld.so could
	  trip itself up (under minix). this change allocates
	  the full size it needs for every object that's loaded
	  so that if that succeeds, it's sure there's virtual address
	  space for the whole thing no matter what other bits happen
	  to be there already.

	. this fix exposed a bug in the test; at atexit() execution
	  time the loaded object is unmapped, so that part of the
	  test is removed.
This commit is contained in:
Ben Gras
2012-06-25 14:13:07 +02:00
parent 3f40eb3511
commit 6a6b7b5769
2 changed files with 35 additions and 47 deletions
-1
View File
@@ -18,7 +18,6 @@ long modfunction(long v1, long *argcookie, long v2) {
}
*argcookie = MAGIC3;
cookie = MAGIC2;
atexit(exithandler);
return MAGIC1;
}