I copied the files under assembly-tutorial-main/hello-world and tried to run it using the following commands in the termainel
jombom@JomBoms-Network:~/Programs/assembly-tutorial-main/hello-world` $ ls
build-linux.sh hello hello-linux.lst hello-macos.asm
build-macos-sh hello-linux.asm hello-linux.o
jombom@JomBoms-Network:~/Programs/assembly-tutorial-main/hello-world $ ./build-linux.sh
ld: hello-linux.o: Relocations in generic ELF (EM: 62)
ld: hello-linux.o: error adding symbols: file in wrong format
Run it via ./hello-linux
jombom@JomBoms-Network:~/Programs/assembly-tutorial-main/hello-world $
As you can see the program failed to link. What could have possibly gone wrong?
This is on my Raspberry Pi
I copied the files under assembly-tutorial-main/hello-world and tried to run it using the following commands in the termainel
As you can see the program failed to link. What could have possibly gone wrong?
This is on my Raspberry Pi