summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_linker.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Try and clean up the multiple formal loading support a bit, based onpeter1999-01-171-10/+21
| | | | | | | | | | | | 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.
* Don't allow more than one module with the same name to be loaded.msmith1999-01-051-4/+17
| | | | | | Make kldfind ignore the path when searching for a loaded module. Submitted by: John Birrell (jb@freebsd.org)
* kldsym(2) prototype implementationpeter1998-11-111-1/+54
|
* Arrange for unload-time linker set hooks to be called. While cut/pastingpeter1998-11-101-14/+71
| | | | | some code, I changed the original to be consistant with the rest of the file rather than duplicating the problems.
* Define the kld_debug variable if KLD_DEBUG is enabledpeter1998-11-061-1/+5
|
* The handle for the kernel is common. With this fix, ELF kernels can loadpeter1998-11-041-1/+2
| | | | a.out kld modules, and a.out kernels can load ELF kld modules.
* Have the in-kernel linker try a default extension of .ko. This means thatpeter1998-11-031-3/+30
| | | | | "kldload nfs" works. We use the same default extension in the /boot/loader system.
* Use the kvm space pathname that we copied in, not the one in user space.peter1998-11-031-2/+2
|
* Don't put 0x in front of %p, it does it already.msmith1998-10-241-4/+4
| | | | Submitted by: Brian Feldman <green@janus.syracuse.net>
* - bzero() after malloc(). This is especially obvious when kern_malloc ispeter1998-10-151-3/+5
| | | | | compiled with DIAGNOSTIC. - Don't break from the preload module processing loop prematurely.
* Display module type as well as module name when we find one preloaded.peter1998-10-101-3/+8
|
* Use Mike Smith's linker module search path code.peter1998-10-101-16/+261
| | | | | | | | | | Implement preloading in a fairly MI way, assuming the information is prepared. DDB interface helpers.. Provide some support for db_kld.c so that we don't have to export too much detail. Debugging and cosmetic nits left in from development.. The other half of the containing file hack so modules can associate themselves with their "file".
* Modify the internal interfaces to the kernel linker to make it possibledfr1998-08-121-6/+9
| | | | for DDB to use its symbol tables.
* Use a real malloc type for M_LINKER instead of #defining it as M_TEMP.bde1998-01-011-1/+2
| | | | Fixed a comment.
* We have had support for running the kernel daemons as threads fordyson1997-12-121-2/+13
| | | | | | | quite a while, but forgot to do so. For now, this code supports most daemons running as kernel threads in UP kernels, and as full processes in SMP. We will soon be able to run them as threads in SMP, but not yet.
* Fixed a sloppy common-style definitions.bde1997-11-201-1/+3
|
* Move the "retval" (3rd) parameter from all syscall functions and putphk1997-11-061-21/+21
| | | | | | | | | | | | it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled.
* Removed unused #includes.bde1997-08-021-4/+1
|
* This is the kernel linker. To use it, you will first need to applydfr1997-05-071-0/+562
the patches in freefall:/home/dfr/ld.diffs to your ld sources and set BINFORMAT to aoutkld when linking the kernel. Library changes and userland utilities will appear in a later commit.
OpenPOWER on IntegriCloud