This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: ldlang.c break missing


On Tue, Nov 20, 2001 at 12:27:15PM -0800, David Heine wrote:
> Alan,
>  I believe that there is missing "break" statement in the
> map_input_to_output_sections() function
> of ldlang.c. It looks like it was accidentally elided in revision 1.56
> of the ldlang.c file.

Oops, that was one of mine too.  There's another one in
lang_gc_sections_1.  :-(

> Here's a suggested patch:
>[snip] 

Thanks, committing, with a similar fix to lang_gc_sections_1.

2001-11-21  David Heine <dlheine@tensilica.com>
            Alan Modra  <amodra@bigpond.net.au>

        * ldlang.c (map_input_to_output_sections): Replace "break"
        accidentally removed with 2001-08-03 change.
        (lang_gc_sections_1): Likewise.

-- 
Alan Modra

Index: ld/ldlang.c
===================================================================
RCS file: /cvs/src/src/ld/ldlang.c,v
retrieving revision 1.67
diff -u -p -r1.67 ldlang.c
--- ldlang.c	2001/11/20 15:31:10	1.67
+++ ldlang.c	2001/11/21 01:07:09
@@ -2056,6 +2056,7 @@ map_input_to_output_sections (s, target,
 	{
 	case lang_wild_statement_enum:
 	  wild (&s->wild_statement, target, output_section_statement);
+	  break;
 	case lang_constructors_statement_enum:
 	  map_input_to_output_sections (constructor_list.head,
 					target,
@@ -4010,6 +4011,7 @@ lang_gc_sections_1 (s)
 	{
 	case lang_wild_statement_enum:
 	  lang_gc_wild (&s->wild_statement);
+	  break;
 	case lang_constructors_statement_enum:
 	  lang_gc_sections_1 (constructor_list.head);
 	  break;


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