Hmm, just noticed a warning I overlooked before:
/usr/bin/ld: /usr/local/lib/wine/i386-unix/libwinecrt0.a(crt_dllmain.o): warning: relocation against `__cxa_finalize@@GLIBC_2.1.3' in read-only section `.text' /usr/bin/ld: warning: creating DT_TEXTREL in a shared object
I am seeing this only on x86 32-bit ubuntu 22.04,, not on amd64 ubuntu and not not our other x86 platforms (a wind river linux builid). Not sure what's going on, or if it indicates anything wrong with this patch (building wine itself does not show the warning...)