Remove useless loop in elf.c
This commit is contained in:
parent
24b368f853
commit
461c4b2ede
@ -1,3 +1,7 @@
|
||||
2015-12-04 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* elf.c (rewrite_elf_program_header): Remove useless loop.
|
||||
|
||||
2015-12-02 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR binutils/19315
|
||||
|
@ -6380,13 +6380,9 @@ rewrite_elf_program_header (bfd *ibfd, bfd *obfd)
|
||||
first_matching_lma = TRUE;
|
||||
first_suggested_lma = TRUE;
|
||||
|
||||
for (section = ibfd->sections;
|
||||
for (section = first_section, j = 0;
|
||||
section != NULL;
|
||||
section = section->next)
|
||||
if (section == first_section)
|
||||
break;
|
||||
|
||||
for (j = 0; section != NULL; section = section->next)
|
||||
{
|
||||
if (INCLUDE_SECTION_IN_SEGMENT (section, segment, bed))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user