Re: Can't load linux64.ko module

2018-04-09 Thread John Baldwin
On Wednesday, April 04, 2018 02:34:53 PM Steve Kargl wrote: > On Wed, Apr 04, 2018 at 02:13:15PM -0700, Steve Kargl wrote: > > > > OK, so where is elf64_linux_vdso_fixup suppose to come from? > > > > The answer is compat/linux/linux_vdso.c where we find > > #if defined(__i386__) || (defined(__a

Re: Can't load linux64.ko module

2018-04-05 Thread Benjamin Kaduk
On Wed, Apr 04, 2018 at 02:34:53PM -0700, Steve Kargl wrote: > > The answer is compat/linux/linux_vdso.c where we find > > #if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) > #define __ELF_WORD_SIZE 32 > #else > #define __ELF_WORD_SIZE 64 > #endif > > having COMPAT_LINUX32

Re: Can't load linux64.ko module

2018-04-04 Thread Steve Kargl
On Wed, Apr 04, 2018 at 02:13:15PM -0700, Steve Kargl wrote: > > OK, so where is elf64_linux_vdso_fixup suppose to come from? > The answer is compat/linux/linux_vdso.c where we find #if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) #define __ELF_WORD_SIZE 32 #else #define

Re: Can't load linux64.ko module

2018-04-04 Thread Steve Kargl
On Wed, Apr 04, 2018 at 01:19:55PM -0700, Steve Kargl wrote: > On Wed, Apr 04, 2018 at 12:09:02PM -0700, Steve Kargl wrote: > > > > kernel config file contains > > > > options COMPAT_LINUX32 > > options COMPAT_LINUXKPI > > options LINPROCFS > > > > When booting, the kerne

Re: Can't load linux64.ko module

2018-04-04 Thread Steve Kargl
On Wed, Apr 04, 2018 at 12:09:02PM -0700, Steve Kargl wrote: > > kernel config file contains > > options COMPAT_LINUX32 > options COMPAT_LINUXKPI > options LINPROCFS > > When booting, the kernel tries to load the module. A manual > loading of the module results in > > %

Re: Can't load linux64.ko module

2018-04-04 Thread Steve Kargl
On Wed, Apr 04, 2018 at 02:41:35PM -0400, Ed Maste wrote: > On 3 April 2018 at 12:26, Steve Kargl > wrote: > > Booting a kernel from > > % uname -a > > FreeBSD sleepdirt 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r331370: \ > > Thu Mar 22 13:41:30 AKDT 2018 \ > > kargl@sleepdirt:/usr/obj/usr/src/a

Re: Can't load linux64.ko module

2018-04-04 Thread Ed Maste
On 3 April 2018 at 12:26, Steve Kargl wrote: > Booting a kernel from > % uname -a > FreeBSD sleepdirt 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r331370: \ > Thu Mar 22 13:41:30 AKDT 2018 \ > kargl@sleepdirt:/usr/obj/usr/src/amd64.amd64/sys/SLEEPDIRT amd64 > > gives the following from dmesg > > %

Can't load linux64.ko module

2018-04-03 Thread Steve Kargl
Booting a kernel from % uname -a FreeBSD sleepdirt 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r331370: \ Thu Mar 22 13:41:30 AKDT 2018 \ kargl@sleepdirt:/usr/obj/usr/src/amd64.amd64/sys/SLEEPDIRT amd64 gives the following from dmesg % dmesg | grep linux link_elf_obj: symbol elf64_linux_vdso_fixup