Fix termux-elf-cleaner.cpp to not break after first removed section
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 30 Jul 2015 12:22:41 +0000 (08:22 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 30 Jul 2015 12:22:41 +0000 (08:22 -0400)
packages/termux-tools/termux-elf-cleaner.cpp

index d232b01..aff3300 100644 (file)
@@ -72,7 +72,6 @@ bool process_elf(uint8_t* bytes, size_t elf_file_size)
                                        dynamic_section_entry->d_tag = DT_NULL;
                                        // Decrease j to process new entry index:
                                        std::swap(dynamic_section[j--], dynamic_section[last_nonnull_entry_idx--]);
-                                       break;
                                }
                        }
                }