-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning/Message about missing __x86_indirect_alt_call_rax when installing on 5.15 kernel #29
Comments
Hey Simon, this might be caused by symbol trimming by the kernel. Is CONFIG_TRIM_UNUSED_KSYMS set? |
Seems like it isn't, I get no results for
The gentoo-kernel kernels are using Fedora's kernel config, for 5.15.63 that's https://src.fedoraproject.org/rpms/kernel/raw/ec69da7a42b5b7c3da91572ef22097b069ddbd01/f/kernel-x86_64-fedora.config |
Help string for this option says it is enabled by default. I imagine the kernels trims symbols, but after you installed this module, its imports went into the list of used symbols in /lib/modules/${KVER}/build/ and now are guarded against trimming. |
From all the checks I did it seems to be disabled, Anyway, I guess it doesn't matter, either it's disabled or it's enabled and the symbol's now been added to the table so should be fine now? |
As far as I understand, you can check the exported symbols, used by modules, in /lib/modules/${KVER}/build/modules-only.symvers. Sorry, I can't suggest any other explanation apart from symbol trimming, but I'm a noob kernel developer. And it seem strange that a binary kernel would enable symbol trimming. |
Hi Eugene,
Thanks for the work on this module! I just emerged the ebuild you linked in the readme and I got an warning message about
needs unknown symbol __x86_indirect_alt_call_rax
. I'm on the stable kernel in gentoo (sys-kernel/gentoo-kernel-bin to be precise), which is currently at version 5.15.63.Modprobing it works fine though, and it also shows the sensor values in
sensors
, so not really sure if this is relevant?I can't post the exact error unfortunately, since I cleared my terminal and for some reason re-emerging the module doesn't show the error anymore, even after unmerging it.
The text was updated successfully, but these errors were encountered: