raspberrypi / tools

1.89k stars 865 forks source link

Error in cross compiling armstub.S #128

Closed anilavakundu closed 2 years ago

anilavakundu commented 2 years ago

Hi I am trying to cross-compile the armstubs

I am using ubuntu 18.04 and I installed the cross compilers using apt viz sudo apt-get install gcc-arm-linux-gnueabihf

I am getting the following error after running make

arm-linux-gnueabihf-gcc -march=armv7-a -DBCM2710=0 -c armstub.S -o armstub.o
armstub.S: Assembler messages:
armstub.S:35: Error: garbage following instruction -- `bx pc,r3'
Makefile:36: recipe for target 'armstub.o' failed
make: *** [armstub.o] Error 1

Any help will be appreciated