Alexandre Julliard pushed to branch master at wine / wine
Commits: fd599628 by Jacek Caban at 2025-02-13T20:53:15+01:00 ntdll: Use signed type for IAT offset in LdrResolveDelayLoadedAPI.
Allows negative IAT offsets.
- - - - - c9519f68 by Jacek Caban at 2025-02-13T20:53:15+01:00 winebuild: Avoid using .idata section for delay-load import libraries.
Recent binutils changes merge .idata sections into the read-only .rdata section. This is intended to make the IAT read-only, as with other modern linkers, but as a side effect, it broke delay-load import libraries. Delay-load import libraries should use separate sections regardless.
Since these new sections are not recognized by the linker, it won’t apply special handling to maintain proper sorting. In practice, this isn’t an issue as long as the name table and IAT maintain the same order. This may result in negative IAT offsets (if the base symbol ends up in the middle of the IAT), but Windows appears to handle this without issues.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57819
- - - - -
2 changed files:
- dlls/ntdll/loader.c - tools/winebuild/import.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/e018ec52198175dbdd7f5926d36bc2...