You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is because lld-link (and rust-lld by extension) doesn't discard the .retplne section and instead retains it in the final binary without any attributes set. Merging the section with e.g. INIT or .rdata fixes issue.
Not sure if this would be in scope for the repo, but would be nice to have documented somewhere.
I wasn't able to get a valid kernel driver binary going. Even the minimal
return 0
DriverEntry example resulted in:It turns out I had a linker override set in my .cargo\config.toml:
This which works fine for user-mode rust application, but apparently doesn't support all the linker args for kernel drivers correctly.
The text was updated successfully, but these errors were encountered: