Quantcast
Channel: Uwe Hermann - gdb - Comments
Viewing all articles
Browse latest Browse all 15

Assembler error message

$
0
0

Hi,
The error message happens because "ldrh ..." line is a thumb instruction.
I am using newlib-1.19.0 but the same problem happens when I try to
build newlib-1.18.0.

arm-thumb-elf-gcc -B/usr/local/src/newlib/newlib-1.19.0.armbuild/arm-thumb-elf/nofmult/newlib/ -isystem /usr/local/src/newlib/newlib-1.19.0.armbuild/arm-thumb-elf/nofmult/newlib/targ-include -isystem /usr/local/src/newlib/newlib-1.19.0/newlib/libc/include -B/usr/local/src/newlib/newlib-1.19.0.armbuild/arm-thumb-elf/nofmult/libgloss/arm -L/usr/local/src/newlib/newlib-1.19.0.armbuild/arm-thumb-elf/nofmult/libgloss/libnosys -L/usr/local/src/newlib/newlib-1.19.0/libgloss/arm -mcpu=arm7 -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.19.0\" -DPACKAGE_STRING=\"newlib\ 1.19.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../../newlib-1.19.0/newlib/libc/machine/arm -DARM_RDI_MONITOR -fno-builtin -g -O2 -mcpu=arm7 -c -o lib_a-strcpy.o `test -f 'strcpy.c' || echo '../../../../../../../newlib-1.19.0/newlib/libc/machine/arm/'`strcpy.c
/tmp/ccknQoqi.s: Assembler messages:
/tmp/ccknQoqi.s:89: Error: selected processor does not support ARM mode `ldrh r2,[r1],#2'

The "-mcpu=" flag is set to arm7. When I manually run the same line with "-mcpu=arm7tdmi"
the compile is good. It also works if I use "-mcpu=arm9".


Viewing all articles
Browse latest Browse all 15

Trending Articles