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

Solutions for __wine_spec_nt_header? #1329

Open
trcrsired opened this issue Aug 14, 2024 · 2 comments
Open

Solutions for __wine_spec_nt_header? #1329

trcrsired opened this issue Aug 14, 2024 · 2 comments

Comments

@trcrsired
Copy link
Contributor

trcrsired commented Aug 14, 2024

Wine has this special __wine_spec_nt_header

https://github.com/wine-mirror/wine/blob/master/tools/winebuild/spec32.c#L738

is that possible to make the elf linker to print this out so that we can easily build linux .so that can be used in wine PE environment?

@trcrsired trcrsired changed the title Solutions for __wine_spec_nt_header? Solutions for __wine_spec_nt_header? Aug 14, 2024
@rui314
Copy link
Owner

rui314 commented Aug 14, 2024

Can you explain a little bit more about what you want to do? I know about PE but I'm not a Wine expert. I have no idea what __wine_spec_nt_header is.

PE and ELF are quite different, and it is not easy to convert a Linux .so to a PE file.

@trcrsired
Copy link
Contributor Author

Can you explain a little bit more about what you want to do? I know about PE but I'm not a Wine expert. I have no idea what __wine_spec_nt_header is.

PE and ELF are quite different, and it is not easy to convert a Linux .so to a PE file.

It emits some pesudo PE metadata (like DOS header PE header) into ELF binary as a symbol for ELF binary. The wine loader uses dlopen to open so and calls into the UNIX side.

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

2 participants