--- On Thu, 29/7/10, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > I don't think I understand the question. gcc does not > normally generate debug info for library functions which are only > referenced, not defined. Where is the debug info for these functions > coming from? Please see: http://www.fpaste.org/XCRA/ It has a small C++ program with it's output and some dwarf information. As can be seen, the library functions swscanf, ungetwc, vfwprintf have both - external & declaration - flags set. So do functions get_a() and get_msg(). The static_function() has both - external & declaration - flags unset. The main function has - external set, but declaration is unset. That makes it confusing to know which functions are defined in the object file and which outside of it. Unless you look at the - .debug_pubnames - section. Thank you. --- Regards -Prasad PS: Please don't send me html/attachment/Fwd mails