Fehler in Binutils für ARM? R13 <--> R3

OP #1764733
Lesenswert?

Hallo zusammen,

hat jemand von Euch eine Ahnung, wie die folgenden Fehlermeldungen 
entstehen können? Ich versuchte, anhand der Anleitung auf 
http://www.eluaproject.net/en_tc_cortex.html eine Toolchain für 
Cortex-M3 zu bauen.

Ich habe die aktuelle Binutils-Version (2.20) herangezogen.

Man beachte:
lsr r3,sp,#2 --> r13 (13, nicht 3) sei hier nicht erlaubt!

Ich habe irgendwas von einem Patch gelesen, der eben dieses Verbot für 
r13 einführt. Aber der liegt ein Jahr zurück.

Gruss
Simon

/home/simon/cross-cortex/gcc-4.3.5/build/./gcc/xgcc 
-B/home/simon/cross-cortex/gcc-4.3.5/build/./gcc/ 
-B/usr/local/cross-cortex/arm-elf/bin/ 
-B/usr/local/cross-cortex/arm-elf/lib/ -isystem 
/usr/local/cross-cortex/arm-elf/include -isystem 
/usr/local/cross-cortex/arm-elf/sys-include -c -DHAVE_CONFIG_H -O2 -g 
-mcpu=cortex-m3 -mthumb   -I. -I../../../libiberty/../include  -W -Wall 
-Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic 
../../../libiberty/regex.c -o regex.o
/tmp/cccNV5U4.s: Assembler messages:
/tmp/cccNV5U4.s:5968: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6473: Error: r13 not allowed here -- `rsb sp,r3,sp'
/tmp/cccNV5U4.s:6474: Error: r13 not allowed here -- `lsr r0,sp,#2'
/tmp/cccNV5U4.s:6750: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6798: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6799: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6801: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6806: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6809: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6814: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6817: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6822: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6825: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6830: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6833: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6838: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6841: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6846: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6848: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6853: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:6856: Error: r13 not allowed here -- `rsb sp,r2,sp'
/tmp/cccNV5U4.s:6861: Error: r13 not allowed here -- `lsr r3,sp,#2'
/tmp/cccNV5U4.s:7094: Error: r13 not allowed here -- `rsb sp,r3,sp'
/tmp/cccNV5U4.s:7095: Error: r13 not allowed here -- `lsr r0,sp,#2'
/tmp/cccNV5U4.s:7153: Error: r13 not allowed here -- `rsb sp,r3,sp'
/tmp/cccNV5U4.s:7154: Error: r13 not allowed here -- `lsr r0,sp,#2'
/tmp/cccNV5U4.s:7704: Error: r13 not allowed here -- `rsb sp,r3,sp'
/tmp/cccNV5U4.s:7705: Error: r13 not allowed here -- `lsr r0,sp,#2'
/tmp/cccNV5U4.s:8459: Error: r13 not allowed here -- `rsb sp,r3,sp'
/tmp/cccNV5U4.s:8460: Error: r13 not allowed here -- `lsr r0,sp,#2'
/tmp/cccNV5U4.s:9578: Error: r13 not allowed here -- `rsb sp,r3,sp'
/tmp/cccNV5U4.s:9579: Error: r13 not allowed here -- `lsr r0,sp,#2'

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren