georgiecasey
georgiecasey

Reputation: 23381

CANNOT LINK EXECUTABLE: empty/missing DT_HASH error

I cross-compiled an ARM binary executable and transferred to my Android device and set permissions. But when I try to execute it returns this error CANNOT LINK EXECUTABLE: empty/missing DT_HASH in "./hello_world" (built with --hash-style=gnu?)

Upvotes: 2

Views: 4408

Answers (1)

georgiecasey
georgiecasey

Reputation: 23381

In my case, I transferred the binary to my device via FTP (FileZilla) and had transfer type set to Auto. This corrupted the binary resulting in the error. When I transferred with Binary transfer type, the binary executed fine on my device.

Upvotes: 1

Related Questions