kanoonsantikul
kanoonsantikul

Reputation: 199

gdb 8.3.1 on OSX Catalina "not in executable format: file format not recognized"

I try to debug this file

and got error

not in executable format: file format not recognized

the 'file' command output

canary: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, 
interpreter /lib/ld-linux.so.2, BuildID[sha1]=377711637c79e57303ff92f946500aed1b42c73a, for 
GNU/Linux 3.2.0, not stripped`

the other answer seem not working for me.

Upvotes: 2

Views: 501

Answers (2)

Richard Barber
Richard Barber

Reputation: 6421

The ELF binary executable format is standard in Linux and other Unixes. It is not compatible with macOS, which uses the Mach-O binary format.

Whatever you are attempting to analyze must be recompiled into a Mach-O binary.

Upvotes: 2

Bodo
Bodo

Reputation: 26

macOS Catalina is not supporting 32bit Applications anymore.

I guess this is true for executables too.

See 32-Bit Apps will no longer work on macOS Catalina: Here’s what to do

Upvotes: 0

Related Questions