Re: [PATCH] rust: export zerocopy symbols to modules
From: Miguel Ojeda
Date: Wed Jul 08 2026 - 06:56:09 EST
On Wed, Jul 8, 2026 at 12:37 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> Non-generic, non-inlined functions of the `zerocopy` crate are only
> codegen'd into `zerocopy.o`, with their symbols currently not exported,
> making them unavailable to loadable modules.
Ah, in that case, yeah, we definitely need this.
> My `CONFIG_CC_OPTIMIZE_FOR_SIZE=y` config is uncovering the most
> interesting bugs. :) This one was revealed after applying [1].
Yeah, it is a bit painful. I will add it to my set.
> I am not a build system expert at all, so be aware that the patch is
No one really is... :) (Unless you are named Masahiro!)
I think I will route this one via `rust-fixes`.
Cheers,
Miguel