From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: jrs@world.std.com Cc: gas2@cygnus.com Subject: Re: ELF line numbers Date: Tue, 11 Jul 1995 09:33:00 -0000 Message-id: <199507111633.MAA21372@sanguine.cygnus.com> References: <951322.023610.jrs@world.std.com> X-SW-Source: 1995/msg00136.html From: jrs@world.std.com (Rick Sladkey) Date: Thu, 22 Jun 1995 02:36:10 EDT When I first tried GNU ld on SunOS 4.1.x, I liked the inclusion of file, function and line number in undefined error messages. I finally got tired of seeing `.text+0xXXXX' messages and so I tried to add this feature for ELF on Solaris 2.x and Linux. I implemented a simple version which will work even without debugging but omits the line number (based on the one in aoutx.h). Thanks. I checked this in. Then as I was about to embark on the full debug version, I realized that using the .stabs section will work for Solaris and Linux but not DWARF. In which file should one implement the stabs version? It seems that elfcode.h is too general and elf32-{i386,sparc}.c are too specific. Actually, the GNU tools support .stabs debugging for any ELF target. That is actually the only to implement C++ debugging in ELF right now, because g++ does not support DWARF. So, elfcode.h (actually, the function is now in elf.c) is the right place to handle both stabs and DWARF debugging information. Ian