This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
binutils/bfd and Sun C++ compilers
- From: Lars Oppermann <lars dot oppermann at sun dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 29 Aug 2002 16:20:21 +0200
- Subject: binutils/bfd and Sun C++ compilers
Hi *,
I'm currently working on some cross-platform tooling that is using
functionality from binutils-2.12; mostly objdump and addr2line.
When I use these tools to work with execautables or libraries that were
compiled with the SunPro compilers (sparc), they work fine as long as
-xs is used when debugging information is generated with -g at
compile-time. However, as soon as the Sun C++ compiler is used addr2line
will no longer find correct symbol- or line-info, objdump -g will always
report the following error:
Bad stab: uv4;0;32
Last stabs entries before error:
n_type n_desc n_value string
198 0 0000000000000000 short:t(0,2)=bs2;0;16;
198 0 0000000000000000 int:t(0,3)=bs4;0;32;
198 0 0000000000000000 long:t(0,4)=bs4;0;32;
198 0 0000000000000000 long long:t(0,5)=bs8;0;64;
198 0 0000000000000000 unsigned char:t(0,6)=buc1;0;8;
198 0 0000000000000000 unsigned short:t(0,7)=bu2;0;16;
198 0 0000000000000000 unsigned:t(0,8)=bu4;0;32;
198 0 0000000000000000 unsigned long:t(0,9)=bu4;0;32;
198 0 0000000000000000 unsigned long long:t(0,10)=bu8;0;64;
198 0 0000000000000000 signed char:t(0,11)=bsc1;0;8;
198 0 0000000000000000 wchar_t:t(0,12)=buc4;0;32;
198 0 0000000000000000 void:t(0,13)=bs0;0;0
198 0 0000000000000000 float:t(0,14)=R1;4;
198 0 0000000000000000 double:t(0,15)=R2;8;
198 0 0000000000000000 long double:t(0,16)=R6;16;
198 0 0000000000000000 ...:t(0,17)=buv4;0;32
trying to load such a binary with gdb-5.2 will even result in gdb
coredumping.
Is this a known issue, am I missing something?
Bests
Lars
--
Lars Oppermann <lars.oppermann@sun.com> Sun Microsystems
Software Engineer - StarOffice/OpenOffice Sachsenfeld 4
Phone: +49 40 23646 959 D-20097 Hamburg
Fax: +49 40 23646 550 http://www.sun.com/staroffice