To avoid some linking errors

Walter Bright newshound2 at digitalmars.com
Mon Oct 29 22:44:32 PDT 2012


On 10/29/2012 9:51 PM, Daniel Murphy wrote:> "Walter Bright" 
<newshound2 at digitalmars.com> wrote in message
 > news:k6mun3$a8h$1 at digitalmars.com...
 >>
 >> The object file format does not support line numbers for symbol references
 >> and definitions. None of the 4 supported ones (OMF, ELF, Mach-O, MsCoff)
 >> have that. Even the symbolic debug info doesn't have line numbers for
 >> references, just for definitions.
 >
 > While this is true, you could scan the relocations for matching symbols,
 > then use the debug information to get line numbers.  This would work for all
 > function calls at least.


If the symbol is undefined, then there is no debug info for it.


More information about the Digitalmars-d mailing list