DWARF prototypes are now generated with both the plain and the linkage names
authorDima Kogan <dima@secretsauce.net>
Tue, 3 Jun 2014 00:43:16 +0000 (17:43 -0700)
committerChanho Park <chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:26 +0000 (20:38 +0900)
commitc01119876e7d43261f8dbf203a5a0d267fcbc2d9
tree90b89d77b3e0f4fea5a2f7e4b2cbaf2cc7721e7a
parent5c5c38e500fd8f20bb8d6c0177948dbfe86b6fcd
DWARF prototypes are now generated with both the plain and the linkage names

If a die has a DW_AT_linkage_name, I now use it: this is required for C++ code,
in particular.

I use the plain name regardless, since sometimes the exported symbol corresponds
to the plain name, NOT the linkage name. For instance I see this on my
Debian/sid amd64 box. In its libc, the linkage name of __nanosleep is
__GI___nanosleep, but the export is __nanosleep
dwarf_prototypes.c