src: minor cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-10-22 00:45:06 +02:00
parent 9fbe95ad48
commit 67548a4d9a
5 changed files with 39 additions and 37 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ tribool PackWinCeArm::canPack() {
if (ih.cpu != IMAGE_FILE_MACHINE_ARM && ih.cpu != IMAGE_FILE_MACHINE_THUMB)
return false;
use_thumb_stub |= ih.cpu == IMAGE_FILE_MACHINE_THUMB || (ih.entry & 1) == 1;
// FIXME later: don't misuse opt->cpu_x86, need an extra option for thumb
// HACK FIXME later: don't misuse opt->cpu_x86, need an extra option to force thumb stub
use_thumb_stub |= (opt->cpu_x86 == opt->CPU_8086);
return true;
}