This patch by Christopher Wellons recognizes the PE bigobj type in the
script run at configure time. Reportedly this is only needed when
looking at object files. Since libbacktrace deals with fully linked
executables, nothing else needs to change. Committed to mainline.
Ian
* filetype.awk: Recognize PE bigobj objects at configure time.
2c6176662869905a11e010bab43eb2a76a2c8a78
diff --git a/libbacktrace/filetype.awk b/libbacktrace/filetype.awk
index 1eefa7e72f0..30349046efd 100644
--- a/libbacktrace/filetype.awk
+++ b/libbacktrace/filetype.awk
@@ -3,6 +3,7 @@
/^\177ELF\002/ { if (NR == 1) { print "elf64"; exit } }
/^\114\001/ { if (NR == 1) { print "pecoff"; exit } }
/^\144\206/ { if (NR == 1) { print "pecoff"; exit } }
+/^\000\000\377\377/ { if (NR == 1) { print "pecoff"; exit } }
/^\001\337/ { if (NR == 1) { print "xcoff32"; exit } }
/^\001\367/ { if (NR == 1) { print "xcoff64"; exit } }
/^\376\355\372\316/ { if (NR == 1) { print "macho"; exit } }