From: Alan Modra Date: Tue, 25 Jul 2006 14:45:17 +0000 (+0000) Subject: * ldlang.c (analyze_walk_wild_section_handler): Init handler_data X-Git-Tag: gdb_6_6-2006-11-15-branchpoint~781 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7544697a28726eedeb276533240555dd97fcea22;p=platform%2Fupstream%2Fbinutils.git * ldlang.c (analyze_walk_wild_section_handler): Init handler_data earlier. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 727e777..e1590f5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2006-07-26 Alan Modra + + * ldlang.c (analyze_walk_wild_section_handler): Init handler_data + earlier. + 2006-07-24 Bob Wilson * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space diff --git a/ld/ldlang.c b/ld/ldlang.c index 8e5734e..e909511 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -670,6 +670,10 @@ analyze_walk_wild_section_handler (lang_wild_statement_type *ptr) int data_counter; ptr->walk_wild_section_handler = walk_wild_section_general; + ptr->handler_data[0] = NULL; + ptr->handler_data[1] = NULL; + ptr->handler_data[2] = NULL; + ptr->handler_data[3] = NULL; /* Count how many wildcard_specs there are, and how many of those actually use wildcards in the name. Also, bail out if any of the @@ -735,10 +739,6 @@ analyze_walk_wild_section_handler (lang_wild_statement_type *ptr) given order, because we've already determined that no section will match more than one spec. */ data_counter = 0; - ptr->handler_data[0] = NULL; - ptr->handler_data[1] = NULL; - ptr->handler_data[2] = NULL; - ptr->handler_data[3] = NULL; for (sec = ptr->section_list; sec != NULL; sec = sec->next) if (!wildcardp (sec->spec.name)) ptr->handler_data[data_counter++] = sec;