SRI-CSL / whole-program-llvm

A toolkit for building whole-program LLVM bitcode files
MIT License
73 stars 11 forks source link

extract-bc on Mac #15

Closed BrunoDutertre closed 8 years ago

BrunoDutertre commented 8 years ago

Downloaded the latest Xcode today. It comes with a new version of otool that does not respect the -X flag. As a result, extract-bc does not work anymore for me.

ianamason commented 8 years ago

This looks to be a bug in otool, since it claims -X will "print no leading addresses or headers". That said I could provide a better parser that will handle this. First I need to get the old otool working so I can compare...

Thanks for diagnosing this.

ianamason commented 8 years ago

Fixed by throwing away any lines of output from otool that isn't whitespace and hex.