mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
63a4b10683
This copies in libbacktrace from the gcc repository as it was in the commit 62e420293a293608f383d9b9c7f2debd666e9fc9. GDB is going to start using this library soon. A dependency between GDB and libbacktrace has already been added to the top level Makefile, so, after this commit, when building GDB, libbacktrace will be built first. However, libbacktrace is not yet linked into GDB, or used by GDB in any way. It is possible to stop libbacktrace being built by configuring the tree with --disable-libbacktrace. This commit does NOT update src-release.sh, that will be done in the next commit, this commit ONLY imports libbacktrace from gcc. This means that if you try to make a release of GDB from exactly this commit then the release tar file will not include libbacktrace. However, as libbacktrace is an optional dependency this is fine.
14 lines
787 B
Awk
14 lines
787 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 "xcoff32"; exit } }
|
|
/^\001\367/ { if (NR == 1) { print "xcoff64"; exit } }
|
|
/^\376\355\372\316/ { if (NR == 1) { print "macho"; exit } }
|
|
/^\316\372\355\376/ { if (NR == 1) { print "macho"; exit } }
|
|
/^\376\355\372\317/ { if (NR == 1) { print "macho"; exit } }
|
|
/^\317\372\355\376/ { if (NR == 1) { print "macho"; exit } }
|
|
/^\312\376\272\276/ { if (NR == 1) { print "macho"; exit } }
|
|
/^\276\272\376\312/ { if (NR == 1) { print "macho"; exit } }
|