NetBSD/sys/compat
manu ddd039179b Fixes the problem with libX11.so mapping by syssgi(MAPELF): the load address
for the text section of libx11.so was overlapping with other ELF sections
aloready loaded, and this resulted into an ENOMEM error.

syssgi(MAPELF) uses elf32_load_psection() from syssrc/sys/kern/exec_subr.c
The problem was never experienced with load_psection() because it only has
to load one section, hence the requested address are not already allocated.

The fix is done when the initial mapping at the default address fails by
finding a free location in the VM space using uvm_map_findspace(), and then
retrying to load the section.

Other details:
- once the ELF section has been relocated, the ELF program header must be
updated with the new address and copied back to userland. For now we always
do it, maybe we could copy it only when it was modified.
- We are able to emulate the exact address where IRIX loads libX11.so instead
of the default location
2002-01-19 14:56:02 +00:00
..
aout add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
aoutm68k add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
common MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
freebsd add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
hpux don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
ibcs2 add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
irix Fixes the problem with libX11.so mapping by syssgi(MAPELF): the load address 2002-01-19 14:56:02 +00:00
linux More-or-less working signal handling for Linux processes on ARM. 2002-01-17 22:50:38 +00:00
m68k4k add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
mach Fixed compiler warnings that would occur if DEBUG_MACH was not defined. 2001-12-18 19:43:24 +00:00
netbsd32 fix error in previous; pointed out by andrew brown. 2002-01-03 15:28:13 +00:00
osf1 add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
ossaudio Make SNDCTL_DSP_POST a nop. It's explicitly *not* supposed to sleep, and as 2001-12-24 00:10:46 +00:00
pecoff pecoff_copyargs(): Fix incorrect pointer type of the variable `ap'. 2001-12-03 06:11:33 +00:00
sunos move the COMPAT_SUNOS SO_BROADCAST hack out of uipc_socket.c into the 2002-01-03 00:59:00 +00:00
sunos32 regen 2002-01-03 15:30:08 +00:00
svr4 nuke the #include "opt_compat_irix.h", too 2001-12-02 00:46:03 +00:00
svr4_32 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
ultrix add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
vax1k add RCSIDs (including regeneration of files as appropriate) 2001-11-13 02:07:52 +00:00
Makefile Our INCSDIR has been pruned from distrib/sets, so don't make it any more. 2001-03-30 12:42:30 +00:00