]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Try and clean up the multiple formal loading support a bit, based on
authorpeter <peter@FreeBSD.org>
Sun, 17 Jan 1999 17:58:52 +0000 (17:58 +0000)
committerpeter <peter@FreeBSD.org>
Sun, 17 Jan 1999 17:58:52 +0000 (17:58 +0000)
commit66afdef4692b6a9f8e4865b0000b63c776b03473
tree0f38461300f770684eca75c05a33f7039e752aac
parentd94a9bb5f67ca36540c58fd2ee2dd1e127c59734
Try and clean up the multiple formal loading support a bit, based on
suggestions from Greg Lehey some time ago.  In the face of multiple
potential file formats, try and give a more sensible error than just
ENOEXEC.

XXX a good case can be made that the loading process is wrong - the linker
should locate the file first (using the search paths etc), then run the
loaders to see if they recognize it.  While the present system allows for
the possibility of different search paths for different formats, we do not
use it and it just makes things more complicated than they need to be.
sys/kern/kern_linker.c