In order to run correctly, FIT not only needs the statically linked executable and the link map file, but also the original object files and libraries the linker used to piece the executable together. You can save the object files by building the executable in two steps:
  • First, compile all object files:
    gcc -c file1.c file2.c
  • Secondly, link them all together:
    gcc -static -Wl,-Map,program.map -o program file1.o file2.o
Upon the invocation of the instrumentor, you can specify the location of the original object files and libraries with the -O and -L command line switches or the OBJPATH and LIBPATH environment variables.