10 Dec
2025
10 Dec
'25
11:40 p.m.
Jacek Caban (@jacek) commented about tools/winebuild/spec32.c:
}
+void output_crt_sections(void) +{ + /* Generate the start/end symbols for .CRT$X?? sections. The start symbol is put into + * .CRT$X?A, the end .CRT$X?Z. Since the linker sort .CRT$X?? sections by name, these symbols + * will end up at the right location.*/ + static const char sections[] = "ict"; + char symbol_name[7]; + int i; + for (i = 0; sections[i]; i++) + { + snprintf( symbol_name, ARRAY_SIZE(symbol_name), "__x%c_a", sections[i] ); `winebuild` usually uses `strmake` for that.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9265#note_125439