This repository has been archived by the owner on Mar 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
modinfo needs a const char [], not a const char * #80
Labels
bug
Something isn't working
Comments
I'm having a real hard time turning the output of #[link_section = ".modinfo"]
pub static FOO: [u8; 11] = b"Hello world"; with Maybe the right strategy is to tackle this and #16 at the same time, switch to bytes instead of strings as input, and adopt e.g. https://github.com/danielhenrymantilla/byte-strings-rs which uses proc macros to implement pub static $name: [u8; c_str!(as_bytes!(stringify!($name), b"=", as_bytes!($value)).len()]
= c_str!(as_bytes!(stringify!($name), b"=", as_bytes!($value)); |
This was referenced Sep 3, 2019
geofft
added a commit
that referenced
this issue
Aug 9, 2020
geofft
added a commit
that referenced
this issue
Aug 9, 2020
geofft
added a commit
that referenced
this issue
Aug 9, 2020
geofft
added a commit
that referenced
this issue
Aug 9, 2020
geofft
added a commit
that referenced
this issue
Aug 10, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We use this (from src/lib.rs) to set modinfo:
This (likely) stores a pointer to a string in the modinfo section instead of storing the string directly.
The text was updated successfully, but these errors were encountered: