OT: Why -g when compiling

"Martin v. Löwis" martin at v.loewis.de
Thu Dec 25 20:56:41 CET 2003


Michael Hudson wrote:

> True.  I don't know if the various linkers around are smart enough to
> not load debugging information until it's asked for...

Atleast on Unix, not mapping debug information at run time has a long
tradition. In ELF, each section has a LOAD flag indicating whether
a section needs to be mapped or not. So the ELF dynamic loader does
not specifically know to omit debug information, but only loads
sections that the static linker told it to.

Regards,
Martin





More information about the Python-list mailing list