Package: file Version: 4.26-1 Severity: wishlist Tags: patch
file doesn't currently detect LLVM bitcode files $ file x.bc x.bc: data The format is described here: http://llvm.org/docs/BitCodeFormat.html There is already a Magdir/llvm, but that is for an old bitcode format. I have attached a patch that adds the correct magic numbers for LLVM bitcode files. Please consider including them. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages file depends on: ii libc6 2.7-16 GNU C Library: Shared libraries ii libmagic1 4.26-1 File type determination library us ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime file recommends no packages. file suggests no packages. -- no debconf information
--- file-4.26/magic/Magdir/llvm 2008-02-19 19:27:31.000000000 +0200 +++ new/magic/Magdir/llvm 2008-11-15 20:16:46.000000000 +0200 @@ -8,3 +8,5 @@ 0 string llvc0 LLVM byte-codes, null compression 0 string llvc1 LLVM byte-codes, gzip compression 0 string llvc2 LLVM byte-codes, bzip2 compression +0 string \xde\xc0\x17\x0b LLVM bitcode, wrapper +0 string BC\xc0\xde LLVM bitcode

