e24afc10e0
libbacktrace/ 2015-05-29 Tristan Gingold <gingold@adacore.com> * pecoff.c: New file. * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies. * Makefile.in: Regenerate. * filetype.awk: Detect pecoff. * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms. Add pecoff. * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is true. * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define. * configure: Regenerate. * pecoff.c: New file. From-SVN: r223859
6 lines
271 B
Awk
6 lines
271 B
Awk
# An awk script to determine the type of a file.
|
|
/\177ELF\001/ { if (NR == 1) { print "elf32"; exit } }
|
|
/\177ELF\002/ { if (NR == 1) { print "elf64"; exit } }
|
|
/\114\001/ { if (NR == 1) { print "pecoff"; exit } }
|
|
/\144\206/ { if (NR == 1) { print "pecoff"; exit } }
|