Subject: re: netbsd32 & sunos32 LKM's.
To: <>
From: matthew green <mrg@eterna.com.au>
List: port-sparc64
Date: 06/07/2001 06:22:21
i'll check out svr4_32 soon.
ok, i've done this, and also made an exec_elf[32] module, for kernels
built without EXEC_ELF32. these are the modules loaded:
powerofseven /usr/lkm# modstat
Type Id Off Loadaddr Size Info Rev Module Name
EXEC 0 -1 0000000008f52000 0008 0000000008f52e90 1 exec_elf
COMPAT 1 -1 0000000008f60000 0030 0000000008f6a788 1 compat_netbsd32
EXEC 2 -1 0000000008f6c000 0008 0000000008f6cb98 1 exec_netbsd32_aout
EXEC 3 -1 0000000008f6e000 0008 0000000008f6e488 1 exec_netbsd32_elf
COMPAT 4 -1 0000000008f70000 0020 0000000008f751b8 1 compat_sunos32
EXEC 5 -1 0000000008f78000 0008 0000000008f78358 1 exec_sunos32_aout
COMPAT 6 -1 0000000008f82000 0040 0000000008f8f3d8 1 compat_svr4
COMPAT 7 -1 0000000008f92000 0038 0000000008f9e4c0 1 compat_svr4_32
EXEC 8 -1 0000000008f7a000 0008 0000000008f7a448 1 exec_svr4_32_elf
and this is the script i use to load it:
cd /usr/lkm
modload -S -d -v -A '/netbsd -T ld.script' exec_elf.o
modload -S -d -v -A '/netbsd -T ld.script' compat_netbsd32.o
modload -S -d -v -A '/netbsd -R compat_netbsd32 -T ld.script' exec_netbsd32_aout.o
modload -S -d -v -A '/netbsd -R compat_netbsd32 -R exec_elf -T ld.script' exec_netbsd32_elf.o
modload -S -d -v -A '/netbsd -R compat_netbsd32 -T ld.script' compat_sunos32.o
modload -S -d -v -A '/netbsd -R compat_netbsd32 -R exec_netbsd32_aout -R compat_sunos32 -T ld.script' exec_sunos32_aout.o
modload -S -d -v -A '/netbsd -T ld.script' compat_svr4.o
modload -S -d -v -A '/netbsd -R compat_svr4 -R compat_netbsd32 -T ld.script' compat_svr4_32.o
modload -S -d -v -A '/netbsd -R compat_svr4 -R compat_netbsd32 -R exec_elf -R compat_svr4_32 -T ld.script' exec_svr4_32_elf.o
ugly, huh? :)
.mrg.