Skip to content

Problems linking the "hello world" example code #51

Description

@JomBom730

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions