2

Possible Duplicate:
Detect GCC compile-time flags of a binary

If I compile a source file into an object file with gcc using some set of options, like so:

$ gcc -c -option1 -option2 ... -optionN -o foo.o foo.c

Is it possible to later extract the list of options used (-option1, -option2, ... -optionN) to compile foo.o from itself somehow?

Lavaman65
  • 863
  • 1
  • 12
  • 22
Andrew Tomazos
  • 66,139
  • 40
  • 186
  • 319

0 Answers0