latehooks and function tracing

see usage for details about function tracing, see makefile (LATEHOOKS) and linker/linker.c about latehooks