Skip to content

Commit

Permalink
do not remove version sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Plyushch committed Aug 15, 2019
1 parent 507e036 commit 334efd1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions termux-elf-cleaner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ bool process_elf(uint8_t* bytes, size_t elf_file_size, char const* file_name)
}
}
}
#if __ANDROID_API__ < 23
else if (section_header_entry->sh_type == SHT_GNU_verdef ||
section_header_entry->sh_type == SHT_GNU_verneed ||
section_header_entry->sh_type == SHT_GNU_versym) {
printf("termux-elf-cleaner: Removing version section from '%s'\n", file_name);
section_header_entry->sh_type = SHT_NULL;
}
#endif
//#if __ANDROID_API__ < 23
// else if (section_header_entry->sh_type == SHT_GNU_verdef ||
// section_header_entry->sh_type == SHT_GNU_verneed ||
// section_header_entry->sh_type == SHT_GNU_versym) {
// printf("termux-elf-cleaner: Removing version section from '%s'\n", file_name);
// section_header_entry->sh_type = SHT_NULL;
// }
//#endif
}
return true;
}
Expand Down

0 comments on commit 334efd1

Please sign in to comment.