4 Dec
2025
4 Dec
'25
1:37 p.m.
On Thu Dec 4 13:37:06 2025 +0000, Yuxuan Shui wrote:
@jacek hope I understand you correctly, you suggestion is to: 1. instead of using `#progma section` and `__declspec(allocate(..))`, we generate these `__xi_a`, etc. symbols from winebuild, similar to `_load_config_used`. 2. in winegcc, depends on the target, add a `-Wl,/merge:.CRT=.rdata` to the compile flags. And after these we also don't need `winecrtend` anymore. Is that what you have in mind? Yes, that's what's I meant (I'd perhaps slightly prefer `-Wl,-merge:.CRT=.rdata` form).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9265#note_124701