[Bug 33349] Use Thumb binaries on ARM?

WineHQ Bugzilla wine-bugs at winehq.org
Sun May 24 20:09:10 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=33349

--- Comment #7 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

revisiting, still present. It's actually worse now due to various code
refactoring (2017-2019?), causing illegal instruction exception even before the
(builtin) exe entry point.

signal_start_process -> start_thread/set_cpu_context ->  __wine_start_process
*boom*

--- snip ---
$ WINEDEBUG=+seh,+relay wineboot >>log.txt 2>&1
...
002c:Ret  PE DLL (proc=0x7fad45b5,module=0x7fab0000
L"advapi32.dll",reason=PROCESS_ATTACH,res=0x800efe60) retval=1
002c:trace:seh:raise_exception code=c000001d flags=0 addr=0x7fc2b290
pc=7fc2b290 tid=002c
002c:trace:seh:raise_exception  r0=7fb18cd9 r1=7ffcf000 r2=00000000 r3=00000000
r4=00000000 r5=00000000
002c:trace:seh:raise_exception  r6=00000000 r7=00000000 r8=00000000 r9=00000000
r10=00000000 r11=00000000
002c:trace:seh:raise_exception  r12=00000000 sp=800f0000 lr=00000000
pc=7fc2b290 cpsr=000f0010
002c:err:seh:raise_exception Unhandled exception code c000001d flags 0 addr
0x7fc2b290
--- snip ---

CPSR = 0x000f0010 -> bit 5 (Thumb execution state bit) not set.

--- snip ---
7FC2B28C __wine_start_process
7FC2B28C
7FC2B28C peb             = -0x318
7FC2B28C entry           = -0x314
7FC2B28C
7FC2B28C entry_0 = R0                       ; LPTHREAD_START_ROUTINE
7FC2B28C peb_0 = R1                         ; PEB *
7FC2B28C
7FC2B28C                 PUSH.W     {R4-R11,LR}
7FC2B290                 SUB.W      SP, SP, #0x2FC
7FC2B294                 LDR        R4, =($_GLOBAL_OFFSET_TABLE_ - 0x7FC2B29E)
7FC2B296                 STR        peb_0, [SP,#0x320+peb]
7FC2B298                 STR        entry_0, [SP,#0x320+entry]
7FC2B29A                 ADD        R4, PC  ; $_GLOBAL_OFFSET_TABLE_
7FC2B29C                 CMP        entry_0, #0
...
--- snip ---

$ wine --version
wine-5.9

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list