Re: linux64.ko fails to load in -CURRENT

2017-07-29 Thread Benjamin Kaduk
On Fri, Jul 28, 2017 at 01:58:12PM -0700, R. Tyler Croy wrote:
> 
> 
> COMPAT_LINUX32 was in the kernel configuration, guess I know that these things
> are incompatible now :)
> 
> I think the handbook notes on statically linking linux support should probably
> be removed:
> 

Please see (doc) r50605.

-Ben


signature.asc
Description: PGP signature


Re: linux64.ko fails to load in -CURRENT

2017-07-28 Thread R. Tyler Croy
(replies inline)

On Fri, 28 Jul 2017, Alexander Kabaev wrote:

> On Fri, 28 Jul 2017 08:50:32 -0700
> "R. Tyler Croy"  wrote:
> 
> > I have noticed this over the past couple weeks with my -CURRENT
> > laptop that 64-bit linux compatibility is failing to load, and I'm
> > not entirely sure why. My current kernel is based off of r321626.
> > 
> > When I run `kldload linux64` it fails with the following:
> > 
> > link_elf_obj: symbol elf64_linux_vdso_fixup undefined
> > linker_load_file: /boot/kernel/linux64.ko - unsupported file type
> > 
> > 
> > It's unclear to me whether this is old cruft sitting around, a
> > regression, or something else entirely floating around my system. Any
> > pointer would help :)
> > 
> > 
> > Cheers
> > - R. Tyler Croy
> 
> I am guessing you have COMPAT_LINUX in your kernel and 32bit emulation
> is compiled into it. This does not work for linux64, one needs to build
> all three required components as modules:


COMPAT_LINUX32 was in the kernel configuration, guess I know that these things
are incompatible now :)

I think the handbook notes on statically linking linux support should probably
be removed:




- R. Tyler Croy

--
 Code: 
  Chatter: 
 xmpp: rty...@jabber.org

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
--


signature.asc
Description: PGP signature


Re: linux64.ko fails to load in -CURRENT

2017-07-28 Thread Alexander Kabaev
On Fri, 28 Jul 2017 08:50:32 -0700
"R. Tyler Croy"  wrote:

> I have noticed this over the past couple weeks with my -CURRENT
> laptop that 64-bit linux compatibility is failing to load, and I'm
> not entirely sure why. My current kernel is based off of r321626.
> 
> When I run `kldload linux64` it fails with the following:
> 
> link_elf_obj: symbol elf64_linux_vdso_fixup undefined
> linker_load_file: /boot/kernel/linux64.ko - unsupported file type
> 
> 
> It's unclear to me whether this is old cruft sitting around, a
> regression, or something else entirely floating around my system. Any
> pointer would help :)
> 
> 
> Cheers
> - R. Tyler Croy

I am guessing you have COMPAT_LINUX in your kernel and 32bit emulation
is compiled into it. This does not work for linux64, one needs to build
all three required components as modules:


191 0x82221000 438d9linux.ko
203 0x82265000 7c49 linux_common.ko
211 0x8226d000 3d8f5linux64.ko
221 0x822ab000 ab75 linprocfs.ko

-- 
Alexander Kabaev


pgpG8HhHCYutw.pgp
Description: Цифровая подпись OpenPGP