https://bugs.winehq.org/show_bug.cgi?id=57308
--- Comment #3 from Eric Pouech eric.pouech@gmail.com --- for packaging, one could use: <wine-src>/configure --prefix=<...> [omitting arch info] CROSSDEBUG=splitdwarf
that would generate all the cross compiled modules (.dll, .exe) with split debug info (in their own foo.dll.debug file)
then these files will have a .gnu_debuglink section (a PE section, not an ELF one, but the meaning and content is exactly the same), These .debug files could be installed (as ELF ones) according to .build-id hierarchy in /usr/lib/debug.
Note: wine debugger is able to search the .debug file in user's debuginfod directory, but isn't capable (yet) to download them upon need.
HTH