http://bugs.winehq.org/show_bug.cgi?id=22053
Andrey Rahmatullin wrar@wrar.name changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wrar@wrar.name
--- Comment #31 from Andrey Rahmatullin wrar@wrar.name 2012-06-07 12:06:10 CDT --- wine built with -g requires latest (20111012) prelink version when gcc > 4.5 so I suspect most or all of overlay problems on modern wine are caused by that (see #30862). That also explains why new gcc doesn't always cause problems and why any changes to CFLAGS (as long as they drop -g) may fix the problem. Note that at least Debian and Ubuntu don't have the new prelink and use -g by default.
There are two things to check:
1) The build logs will contain prelink errors after winegcc link commands for kernel32.dll.so and/or ntdll.dll.so such as "prelink: kernel32.dll.so: Unknown DWARF DW_AT_8465 with block DW_FORM"
2) The binaries (kernel32.dll.so and/or ntdll.dll.so) when examined with objdump -h will have usual 0x00000000-based addresses in VMA fields for their sections, instead of 0x7b800000- and 0x7bc00000-based respectively.
Of course if the prelink version used is old and binaries were built with -g there is nothing else to check, the reason is obvious.