mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-19 19:34:19 +08:00
The fallback CONTEXT struct for ARM64 had multiple structural issues: - ContextFlags was DWORD64 (8 bytes) instead of ULONG (4 bytes) - Missing Cpsr field entirely - Missing DECLSPEC_ALIGN(16) attribute - X registers as simple array X[29] instead of union with named struct X[31] These mismatches caused incorrect struct size and field offsets, leading to register corruption when used with Windows APIs like GetThreadContext or RtlRestoreContext. The fallback struct now matches the official ARM64_NT_CONTEXT layout exactly, ensuring binary compatibility with Windows ARM64 system calls. |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| lib | ||
| build-tcc.bat | ||
| tcc-win32.txt | ||
| test_arm64_backtrace.c | ||
| test_arm64_inline_asm.c | ||
| test_arm64_libtcc_context.c | ||
| test_arm64_libtcc_context.S | ||
| test_arm64.c | ||
| test_pe_field_alignment.c | ||
| test_pe_field_alignment.ref | ||
| test_rstdin.c | ||
| test_run_argv.c | ||
| test_run_argv.ref | ||
| test_run_exit.c | ||
| test_run_stdin.c | ||
| test_run_stdin.ref | ||