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