* ldlang.c (wild): Tidy default_common_section loop.
(print_input_section): Format.
This commit is contained in:
parent
241a6c40c8
commit
abe6ac950c
2 changed files with 49 additions and 51 deletions
|
@ -1,5 +1,8 @@
|
|||
2006-04-19 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* ldlang.c (wild): Tidy default_common_section loop.
|
||||
(print_input_section): Format.
|
||||
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
|
13
ld/ldlang.c
13
ld/ldlang.c
|
@ -2458,16 +2458,14 @@ wild (lang_wild_statement_type *s,
|
|||
|
||||
walk_wild (s, output_section_callback, output);
|
||||
|
||||
if (default_common_section == NULL)
|
||||
for (sec = s->section_list; sec != NULL; sec = sec->next)
|
||||
{
|
||||
if (default_common_section != NULL)
|
||||
break;
|
||||
if (sec->spec.name != NULL && strcmp (sec->spec.name, "COMMON") == 0)
|
||||
{
|
||||
/* Remember the section that common is going to in case we
|
||||
later get something which doesn't know where to put it. */
|
||||
default_common_section = output;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3509,13 +3507,11 @@ static void
|
|||
print_input_section (asection *i)
|
||||
{
|
||||
bfd_size_type size = i->size;
|
||||
|
||||
init_opb ();
|
||||
|
||||
{
|
||||
int len;
|
||||
bfd_vma addr;
|
||||
|
||||
init_opb ();
|
||||
|
||||
print_space ();
|
||||
minfo ("%s", i->name);
|
||||
|
||||
|
@ -3567,7 +3563,6 @@ print_input_section (asection *i)
|
|||
|
||||
print_dot = addr + TO_ADDR (size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue