-
Notifications
You must be signed in to change notification settings - Fork 13
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
Module doesn't install on rustc 1.53.0-nightly #11
Comments
I'll look into this, but this seems like a bug somewhere in the Rust build system or compiler. I bumped into this early on in my crate where Rust was emitting relocation symbols unacceptable in the kernel. I just checked, and it's doing it again. See this issue for a deeper dive. I may not be able to fix this on my end. |
Feel free to use the information in my issue linked above and the output of |
Since I looked into this, I just append my insights here. Maybe they are helpful for further analysis. Unfortunately, the following illegal relocations are generated: $ objdump -r parrot.ko | grep R_X86_64_GOTPCREL
0000000000000036 R_X86_64_GOTPCREL _ZN4core3num7flt2dec8strategy5grisu12CACHED_POW1017h03fcb65baeeb9113E-0x0000000000000004
00000000000001bf R_X86_64_GOTPCREL _ZN4core3num7flt2dec8strategy5grisu12CACHED_POW1017h03fcb65baeeb9113E-0x0000000000000004
0000000000000126 R_X86_64_GOTPCREL _ZN4core3num7flt2dec8strategy5grisu12CACHED_POW1017h03fcb65baeeb9113E-0x0000000000000004 It is interesting that the R_X86_64_GOTPCREL relocation is only generated for those tree relocations to the flt2dec function. The rest of the core does not seem to be affected. |
I also see it being used for memcpy/memset. It can be reproduced when using |
I switched from |
Hello. I try to build this repo, but I meet this error:
so I change
x86_64-linux-kernel
tox86_64-unknown-none-linuxkernel
on Makefile and then it build without error.However, when I try to install the module, follow error is occur.
My toolchain and kernel version is here:
and module info is here:
The text was updated successfully, but these errors were encountered: