------- Comment #7 from pj dot pandit at yahoo dot co dot in 2010-08-13 05:52 ------- You got me confused. What do you mean - "DW_AT_external is correct for anything that has "global" linkage, whether or not is defined." - ?
How do you define "global" linkage, here? DIEs for static variables/functions don't have DW_AT_external set, though you say they've global linkage. Also, how does on locate the DIEs for variables/functions that are listed in the .debug_pubnames section($ eu-readelf -wpubnames <file>). The list of variables/functions that are *defined* in the same compilation unit and are *visible/accessible from outside* of it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45153