Browse Source

Fix termux-elf-cleaner.cpp to not break after first removed section

android-5
Fredrik Fornwall 10 years ago
parent
commit
1ceaf1eee7
  1. 1
      packages/termux-tools/termux-elf-cleaner.cpp

1
packages/termux-tools/termux-elf-cleaner.cpp

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

Loading…
Cancel
Save