diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-07-25 14:45:17 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2006-07-25 14:45:17 +0000 |
commit | 7a5f123d3a3a671e6150ba2b550d634e971ce7b9 (patch) | |
tree | 5a99927452d1bc6571b4d3f6ff336b917aa62ec0 /ld | |
parent | 875d39a6a853aa1e1d88d5e3371da4a4526085e8 (diff) | |
download | binutils-redhat-7a5f123d3a3a671e6150ba2b550d634e971ce7b9.tar.gz |
* ldlang.c (analyze_walk_wild_section_handler): Init handler_data
earlier.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldlang.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 727e777cb8..e1590f5f0d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2006-07-26 Alan Modra <amodra@bigpond.net.au> + + * ldlang.c (analyze_walk_wild_section_handler): Init handler_data + earlier. + 2006-07-24 Bob Wilson <bob.wilson@acm.org> * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space diff --git a/ld/ldlang.c b/ld/ldlang.c index 8e5734e77b..e909511305 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; |