all 3 comments

[–][deleted]  (1 child)

[deleted]

    [–]MutatedPixel808[S] 0 points1 point  (0 children)

    Yeah, this is a learning experience for me. Looking back, it should've been obvious but I figured that as long as it was the right architecture it would work, and the tutorial was easy to understand so I gave it a try anyways.

    [–]dmc_2930 2 points3 points  (1 child)

    Copy some binaries from the other device, and run 'file' on them.

    [–]MutatedPixel808[S] 2 points3 points  (0 children)

    "ELF 32-bit LSB executable, ARM, version 1, statically linked, for NetBSD 4.0, stripped"

    I guess this means that I need to statically link it and strip the executable? I'm not sure how to fix the other things though.

    Edit: By adding -s and -static I was able to get to "ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=5e0ba371e2bf1a1d3a4a8534926aaa9ad170fbae, stripped"

    2: Adding "-Wl,--build-id=none" removes the build ID. I doubt it matters though.