https://bugs.winehq.org/show_bug.cgi?id=46870
--- Comment #43 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Zebediah Figura from comment #42)
Yes, I know, but I'm pretty sure it needs corresponding change to winegcc to actually work. Moreover, I tested myself with a PIC build, and successfully ran a custom match.
Hello,
Do you use optimization flags?
I don't, and according to comment 16 from bug 28140:
--- Quote --- the only case for '-fPIC' where a load of GOT register is emitted into prolog code is indeed "no optimization". Gcc seems to intentionally generate "bad" code here, including a redundant load of GOT register. --- Quote ---
I tested wine-staging 4.5 + staged patchset and CFLAGS='-O1 ' and I still get the game error, though.
I also tested wine-staging 4.5 + staged patchset + the two commits from bug28140 (DECLSPEC_HOTPATCH SizeOfRessource() and FindClose()), in case those were what the game wanted to hotpatch, but it still failed.
$ gcc --version gcc (Debian 4.9.2-10+deb8u2) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Regards