This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: -feliminate-dwarf2-dups unusable?
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-bugs at gcc dot gnu dot org, gdb at sources dot redhat dot com
- Date: Tue, 17 Dec 2002 16:24:40 -0500
- Subject: Re: -feliminate-dwarf2-dups unusable?
- References: <200212172107.gBHL7ax07371@fillmore.constant.com>
Benjamin Kosnik writes:
>
> I've been experimenting with -gdwarf-2 -feliminate-dwarf2-dups in libstdc++.
> This combination of flags reduces the shared binary by 400k.
>
> -g -O2
> -rwxrwxr-x 1 bkoz bkoz 4.0M libstdc++.so.5.0.2*
>
> -gdwarf-2 -feliminate-dwarf2-dups -O2
> -rwxrwxr-x 1 bkoz bkoz 3.6M libstdc++.so.5.0.2*
>
> The build and testsuite complete without incident, but then when I try to
> debug, I get:
>
> (gdb) file a.out
> Reading symbols from a.out...DW_FORM_strp pointing outside of .debug_str section
>
> This is with mainline gdb, and the dcarlton branch, with top-of-tree
> gcc, on x86/linux.
>
> Any ideas?
>
> -benjamin
I think we are not doing this yet. There was some initial work done by
Jim Blandy, but I am not sure where that is at right now.
Read the thread at:
http://sources.redhat.com/ml/gdb/2002-11/msg00040.html
Elena