NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Guess compilation flags from binary ?

On Sun, Jan 17, 2010 at 11:28:07AM +0100, Joel Carnat wrote:
> How can I guess the compilation flags that were used to build a binary ?
> For example, how do I know if "/bin/ksh" was compiled with "-msse" or 
> which "-mcpu=" was used ?

try disassembly with objdump -d and grep for CPU-specific opcodes?

there are probably more elegant ways to do this.

  Aaron J. Grier | "Not your ordinary poofy goof." |

Home | Main Index | Thread Index | Old Index