Error: selected processor does not support `bx lr...
Posted: Wed Oct 14, 2009 9:34 pm
Hi,
The compiler for ARM7 doesn't work. Or I can't make it work.
I am trying to compile some source for the ARM7 processor (it doesn't matter, but it is the DSGUI library).
Some parts of it are for ARM7 processor. The compiler gives the error:
Error: selected processor does not support `bx lr
The error is systematic, whatever the source. It seems that the problem is in gcc for arm.
Platform: Windows
Compiler version : arm-eabi-gcc.exe (devkitARM release 26) 4.4.0
Example:
essai.c:
void nothing() { }
Command line:
$ arm-eabi-gcc -mcpu=arm7 -save-temps -c source/essai.c -o release/essai.o
essai.s: Assembler messages:
essai.s:25: Error: selected processor does not support `bx lr'
The .s file contains:
.cpu arm7
.fpu softvfp
.eabi_attribute 23, 1
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 1
.eabi_attribute 30, 2
.eabi_attribute 18, 4
.file "essai.c"
.text
.align 2
.global nothing
.type nothing, %function
nothing:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
bx lr
.size nothing, .-nothing
.ident "GCC: (devkitARM release 26) 4.4.0"
The compiler generate the bx lr instruction but the assembler for the same cpu doesn't know it???
What can I do ? Help !!!
Thanks
Michel(gre)
The compiler for ARM7 doesn't work. Or I can't make it work.
I am trying to compile some source for the ARM7 processor (it doesn't matter, but it is the DSGUI library).
Some parts of it are for ARM7 processor. The compiler gives the error:
Error: selected processor does not support `bx lr
The error is systematic, whatever the source. It seems that the problem is in gcc for arm.
Platform: Windows
Compiler version : arm-eabi-gcc.exe (devkitARM release 26) 4.4.0
Example:
essai.c:
void nothing() { }
Command line:
$ arm-eabi-gcc -mcpu=arm7 -save-temps -c source/essai.c -o release/essai.o
essai.s: Assembler messages:
essai.s:25: Error: selected processor does not support `bx lr'
The .s file contains:
.cpu arm7
.fpu softvfp
.eabi_attribute 23, 1
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 1
.eabi_attribute 30, 2
.eabi_attribute 18, 4
.file "essai.c"
.text
.align 2
.global nothing
.type nothing, %function
nothing:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
bx lr
.size nothing, .-nothing
.ident "GCC: (devkitARM release 26) 4.4.0"
The compiler generate the bx lr instruction but the assembler for the same cpu doesn't know it???
What can I do ? Help !!!
Thanks
Michel(gre)