gba: always use ARM mode instead of Thumb mode

This results in bigger code size, but it works around a bug in the
linker.

The issue starts with the problem that libraries (picolibc, compiler-rt)
were compiled as ARM and the rest as Thumb. This causes some blx
instructions to be inserted by the linker to call into these libraries.

Ideally we should fix the libraries to use Thumb mode instead, but that
requires some more extensive changes (including fixes to compiler-rt)
and it's just way easier to use ARM mode everywhere.
This commit is contained in:
Ayke van Laethem
2020-04-21 15:20:10 +02:00
committed by Ron Evans
parent ceeba528e7
commit 565ff99c31
+2 -2
View File
@@ -1,5 +1,5 @@
{
"llvm-target": "thumb4-none-eabi",
"llvm-target": "arm4-none-eabi",
"cpu": "arm7tdmi",
"build-tags": ["gameboyadvance", "arm7tdmi", "baremetal", "linux", "arm"],
"goos": "linux",
@@ -10,7 +10,7 @@
"libc": "picolibc",
"cflags": [
"-g",
"--target=thumb4-none-eabi",
"--target=arm4-none-eabi",
"-mcpu=arm7tdmi",
"-Oz",
"-Werror",