mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
* filetype.awk: Add AIX XCOFF type detection. * configure.ac: Recognize xcoff format. * Makefile.am (FORMAT_FILES): Add xcoff.c. * fileline.c: Include <unistd.h>. (fileline_initialize): Add case for AIX procfs. * xcoff.c: New file. * configure, Makefile.in: Rebuild. From-SVN: r250435
9 lines
382 B
Awk
9 lines
382 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 } }
|
|
/\001\337/ { if (NR == 1) { print "xcoff"; exit } }
|
|
/\001\367/ { if (NR == 1) { print "xcoff"; exit } }
|
|
|