On Fri, May 24, 2019 at 03:24:34PM +0200, Jakub Jelinek wrote: > On Tue, May 21, 2019 at 03:44:47PM -0700, Indu Bhagat wrote: > > Yes and No :) And that is indeed one of the motivation of the project - to > > allow CTF generation where it's most suited aka the toolchain. > > > > There do exist utilties for generation of CTF from DWARF. For example, one > > of > > them is the dwarf2ctf in the DTrace Linux distribution. dwarf2ctf works > > offline > > to transform DWARF generated by the compiler into CTF. > > So, if there is a conversion utility, why don't we just change gcc so that > if some new option is passed on the gcc driver link line, then that > post-processing utility will be invoked too?
It could be even written as a linker plugin. Jakub