Re: Executable's debug format

Daniel Jacobowitz
2004-02-16T03:32:28Z

On Thu, Feb 12, 2004 at 10:03:02PM -0500, Ian Lance Taylor wrote:
> > Or is it more complicated? Can a single executable be composed of object
> > files which each have there debugging info in a different format?
>
> Yes, that is possible, though very unusual.

It happens pretty frequently on fairly-but-not-excessively recent
GNU/Linux systems. Some system library will be built against crt*
objects built before GCC's default changed to -gstabs+ and then user
code will use a more recent GCC that prefers -gdwarf-2. In fact, GDB
has had some interesting bugs guessing the address ranges of psymtabs
in such cases.

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer