diff options
author | wollman <wollman@FreeBSD.org> | 1993-12-20 19:31:41 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1993-12-20 19:31:41 +0000 |
commit | 0628a65f26f62890353fedd1d08eabffe47362c0 (patch) | |
tree | ca8b0f390d98e6b2304c3d13ac30f1c57d0de35a /sys/kern/imgact_aout.c | |
parent | 0ffcaa99d1a0ff1b363132f44adaff425e5cc13b (diff) | |
download | FreeBSD-src-0628a65f26f62890353fedd1d08eabffe47362c0.zip FreeBSD-src-0628a65f26f62890353fedd1d08eabffe47362c0.tar.gz |
Let the linker keep track of pseudo-devices needing initialization and
image activators, rather than listing them inline in the code.
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index 55d61eb..4fe4946 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: aout_imgact.c,v 1.2 1993/12/19 00:51:14 wollman Exp $ + * $Id: imgact_aout.c,v 1.1 1993/12/20 16:16:45 wollman Exp $ */ #include "param.h" @@ -37,6 +37,7 @@ #include "exec.h" #include "mman.h" #include "imgact.h" +#include "kernel.h" #include "vm/vm.h" @@ -179,3 +180,12 @@ exec_aout_imgact(iparams) return (0); } + +/* + * Tell kern_execve.c about it, with a little help from the linker. + * Since `const' objects end up in the text segment, TEXT_SET is the + * correct directive to use. + */ +static const struct execsw aout_execsw = { exec_aout_imgact }; +TEXT_SET(execsw_set, aout_execsw); + |