diff options
author | Tristan Gingold <gingold@adacore.com> | 2015-12-03 11:57:29 +0100 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2015-12-04 12:51:03 +0100 |
commit | 461c4b2edee2f0a4ee7dec0001a6fabf46454a24 (patch) | |
tree | d3bd2f2c8345d6f2fd79e355a2fffc1c4db25542 /bfd/elf.c | |
parent | 24b368f8532b4775f9fd5bcc7958a84d4218aa46 (diff) | |
download | gdb-461c4b2edee2f0a4ee7dec0001a6fabf46454a24.zip gdb-461c4b2edee2f0a4ee7dec0001a6fabf46454a24.tar.gz gdb-461c4b2edee2f0a4ee7dec0001a6fabf46454a24.tar.bz2 |
Remove useless loop in elf.c
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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)) { |