Merging debug strings
Jakub Jelinek
jakub@redhat.com
Thu Oct 2 11:05:00 GMT 2003
On Thu, Oct 02, 2003 at 10:25:33AM +0200, Andi Kleen wrote:
> Ben Young <ben.young@transversal.com> writes:
> >
> > if (node->form == DW_FORM_strp)
> > {
> > - named_section_flags (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS);
> > + int flags = DEBUG_STR_SECTION_FLAGS;
> > + if ( !flag_merge_debug_strs )
> > + flags &=~ ( SECTION_MERGE | SECTION_STRINGS | SECTION_ENTSIZE );
>
> Hmm. This looks like a hack. Wouldn't it be better to just add
> a nomerge option to ld ?
Even better just apply
http://sources.redhat.com/ml/binutils/2003-09/msg00324.html
which should both speed ld up and do the merging.
That patch is not applied in binutils CVS because it
is waiting for assignments from Michael Matz and Lars Knoll AFAIK.
Jakub
More information about the Gcc-patches
mailing list