compiling freeBSD with LTO
jd1008 at gmail.com
Fri May 22 00:19:34 UTC 2015
On 05/21/2015 05:57 PM, ervd ervd wrote:
> I am doing a project in which I need to generate the whole program call
> graph and for that I need to compile the freeBSD kernel with the LTO option.
> Has anyone done this work previously?
You will likely run into problems in programs which make calls
via pointers to functions, which the kernel is full of. Many of these
pointers are inside of data structures, each of which is initialized
in some other function. Thus you will end up generating graph
entries to unnamed functions.
More information about the freebsd-questions