public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* DWARF DW_AT_external
@ 2010-07-31  6:01 P J P
  0 siblings, 0 replies; only message in thread
From: P J P @ 2010-07-31  6:01 UTC (permalink / raw)
  To: gcc-bugs

  Hi,

As I understand, the DWARF tag DW_AT_external is meant to indicate whether a variable/function is accessible from outside the compilation unit(object file) containing the given DWARF DIE - Debugging Information Entry.

But it looks like DW_AT_external is also set for variables/functions defined in a different object file, but has a DIE because of linking.

See: http://pastebin.com/vFiBWuhh

It has a small C++ program - greeting.cpp, with it's output and some DWARF information.

As can be seen, the external flag is set for the standard library functions such as - swscanf, ungetwd, or vfwprintf - which are not defined or used in greeting.cpp, but are part of the object file because of linking.

This makes it *difficult* to locate the DIEs describing the functions that are defined and used in greeting.cpp.

Thank you.
---
Regards
    -Prasad
PS: Please don't send me html/attachment/Fwd mails



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-31  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-31  6:01 DWARF DW_AT_external P J P

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).