http://www.linuxquestions.org/questions/programming-9/using-ld-wrap-function-to-instrument-790444/ ld -wrap