Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit b47a92c

Browse files
committed
1 parent 2e94976 commit b47a92c

File tree

4 files changed

+1426
-0
lines changed

4 files changed

+1426
-0
lines changed

configure

+3
Original file line numberDiff line numberDiff line change
@@ -11472,6 +11472,9 @@ pecoff) FORMAT_FILE="pecoff.lo"
1147211472
xcoff*) FORMAT_FILE="xcoff.lo"
1147311473
backtrace_supports_data=no
1147411474
;;
11475+
macho*) FORMAT_FILE="macho.lo"
11476+
backtrace_supports_data=no
11477+
;;
1147511478
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
1147611479
$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
1147711480
FORMAT_FILE="unknown.lo"

configure.ac

+3
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ pecoff) FORMAT_FILE="pecoff.lo"
236236
xcoff*) FORMAT_FILE="xcoff.lo"
237237
backtrace_supports_data=no
238238
;;
239+
macho*) FORMAT_FILE="macho.lo"
240+
backtrace_supports_data=no
241+
;;
239242
*) AC_MSG_WARN([could not determine output file type])
240243
FORMAT_FILE="unknown.lo"
241244
backtrace_supported=no

filetype.awk

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
/\177ELF\002/ { if (NR == 1) { print "elf64"; exit } }
44
/\114\001/ { if (NR == 1) { print "pecoff"; exit } }
55
/\144\206/ { if (NR == 1) { print "pecoff"; exit } }
6+
/\xFE\xED\xFA\xCE/ { if (NR == 1) { print "macho32"; exit } }
7+
/\xCE\xFA\xED\xFE/ { if (NR == 1) { print "macho32"; exit } }
8+
/\xFE\xED\xFA\xCF/ { if (NR == 1) { print "macho64"; exit } }
9+
/\xCF\xFA\xED\xFE/ { if (NR == 1) { print "macho64"; exit } }
10+
/\xCA\xFE\xBA\xBE/ { if (NR == 1) { print "macho-fat"; exit } }
11+
/\xBE\xBA\xFE\xCA/ { if (NR == 1) { print "macho-fat"; exit } }

0 commit comments

Comments
 (0)