This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Merging debug strings


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 ? 

-Andi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]