https://bugs.winehq.org/show_bug.cgi?id=45703
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #11 from Zebediah Figura z.figura12@gmail.com --- (In reply to Anastasius Focht from comment #9)
Anyway, this problem domain is known for years. There were various discussions in the past on how to mitigate this. More recent one: https://bugs.winehq.org/show_bug.cgi?id=45199#c30 (and follow-up comments).
- making Win32 API hot-patchable by default
- use '-fno-PIC' by default
- implement proper NT-style syscall thunks for native API (Wine-Staging)
Yet we still keep to continue the practice "as needed", polluting the tree source with 'DECLSPEC_HOTPATCH'. Analysing/debugging that is just monkey work.
Right, it's getting to be time this was fixed. Nothing along the lines of NT syscalls will happen before code freeze, but I'm going to start pushing to at least fix hot-patching on the GCC side, so that we can apply it to all API exports. Arguing for -fno-PIC is left as an exercise to the reader.