Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Is mold any compatible at all with wine-tkg (and anything Wine related) to build? #1245

Open
Impeta opened this issue Apr 26, 2024 · 2 comments

Comments

@Impeta
Copy link

Impeta commented Apr 26, 2024

Title says it all. Over here, we're trying to brainstorm through my issue being that I'm unable to build wine-tkg with the usage of your modern linker, and I thought to raise it up here just in case it might be related to or not. For more info, check the aforementioned link.

@Alcaro
Copy link

Alcaro commented Apr 26, 2024

You can probably compile the Unix-side pieces with mold. Don't know if it's tested, but if it doesn't work already, it's probably not missing anything big.

You can not compile the DLLs with mold. mold can only emit ELF files, not PE.

@ishitatsuyuki
Copy link
Contributor

The most problematic flags used by Wine is -Ttext and other executable-layout controlling flags for the preloader (which reserves certain address regions that are always reserved on Win32).

https://github.com/wine-mirror/wine/blob/25c58e6887647a223aa74f7e7d0402abb4a2a2b8/configure.ac#L741

Wine generally have very low linking overhead as it's split into hundreds of DLLs with a small number of object files each. If you really wanted a more modern linker then LLD is officially supported (all you need is to set the native and cross compiler to clang). I'd suggest not messing with mold as it can create subtle issues that are hard to debug and not tested at all by upstream Wine developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants