https://bugs.winehq.org/show_bug.cgi?id=55139
--- Comment #4 from David Korth gerbilsoft@gerbilsoft.com --- I'm using Gentoo and ran into the same issue.
gcc: 13.1.0-r1 i686-w64-mingw32/gcc: 13.1.0-r1 x86_64-w64-mingw32/gcc: 13.1.0-r1
CFLAGS: -O2 -pipe -march=native -mfpmath=sse -fcf-protection -gz=zstd -fgraphite-identity -floop-nest-optimize -ftree-vectorize LDFLAGS: -Wl,-O2 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,pack-relative-relocs
I also have -fstack-protector-strong set system-wide, but Gentoo's wine ebuilds filter it out. LTO flags are also filtered out.