aboutsummaryrefslogtreecommitdiff
path: root/bfd/sunos.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/sunos.c')
-rw-r--r--bfd/sunos.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/sunos.c b/bfd/sunos.c
index 1b17d3e..5995f16 100644
--- a/bfd/sunos.c
+++ b/bfd/sunos.c
@@ -859,11 +859,10 @@ sunos_add_dynamic_symbols (bfd *abfd,
abfd->sections = NULL;
else
{
- asection *s, *n;
+ asection *s;
- for (s = abfd->sections; s != NULL; s = n)
+ for (s = abfd->sections; s != NULL; s = s->next)
{
- n = s->next;
if ((s->flags & SEC_LINKER_CREATED) == 0)
bfd_section_list_remove (abfd, s);
}