[llvm-dev] invalid signature error (old bitcode, new tools)

Muhammad Umar Janjua via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 15 16:57:48 PST 2016


 At some point in 2005/6, I was using an older version of llvm-gcc.I generated files with bytecode using llvm tools at that time.
It was  GNU C version 3.4-llvm 20030924 (experimental) (i686-pc-linux-gnu)
; compiled by GNU C version 3.4.0.
I somehow lost these old tools. But after a decade, I still want to disassemble these old result files to see the code.

 So I downloaded some windows llvm tools to disassemble a bytecode file into .ll file to view the disassembly code.
However, I am seeing an invalid bitcode signature error. 
Now there could be some changes in the format that the newer version insists on.
Could some one help me with llvm-dis for windows that can disassemble the attached c6.bc file?



C:\work\llvm-3.4-tools-windows>llvm-dis c:\ImportantDocs\experiments\c6.bc
llvm-dis: Invalid bitcode signature
C:\work\llvm-3.4-tools-windows>llvm-dis -help
OVERVIEW: llvm .bc -> .ll disassemblerUSAGE: llvm-dis [options] <input bitcode>OPTIONS:
  -f                - Enable binary output on terminals
  -help             - Display available options (-help-hidden for more)
  -o=<filename>     - Override output filename
  -print-after-all  - Print IR after each pass
  -print-before-all - Print IR before each pass
  -show-annotations - Add informational comments to the .ll file
  -time-passes      - Time each pass, printing elapsed time for each on exit
  -version          - Display the version of this programC:\work\llvm-3.4-tools-windows>llvm-dis -version
LLVM (http://llvm.org/):
  LLVM version 3.4svn
  DEBUG build.
  Built Feb 24 2014 (21:50:43).
  Default target: i686-pc-win32
  Host CPU: corei7-avx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160216/c1968df5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c6.bc
Type: application/octet-stream
Size: 6899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160216/c1968df5/attachment.obj>


More information about the llvm-dev mailing list