Starting with WASI-SDK 28, the libc.so build for wasm32-wasip2 exports wasi:cli/[email protected]#run, which means an application component that includes libc.so cannot also export it. In addition, it means every component that includes libc.so now exports that function whether it intended to or not.
I don't believe libc.so should export any component-level functions whatsoever -- only import them. It's up to the application to export any component-level functions.