Upgrade termux-elf-cleaner to strip DT_PREINIT_ARRAY

This commit is contained in:
LoveSy 2023-03-18 18:59:17 +08:00 committed by John Wu
parent b9d0a3b3d4
commit a07d4080b6
3 changed files with 6 additions and 3 deletions

View File

@ -195,9 +195,12 @@ def clean_elf():
else:
elf_cleaner = op.join('native', 'out', 'elf-cleaner')
if not op.exists(elf_cleaner):
execv(['g++', '-std=c++11', 'tools/termux-elf-cleaner/termux-elf-cleaner.cpp',
execv(['gcc', '-DPACKAGE_NAME="termux-elf-cleaner"',
'-DPACKAGE_VERSION="2.1.1"', '-DCOPYRIGHT="Copyright (C) 2022 Termux."',
'tools/termux-elf-cleaner/elf-cleaner.cpp',
'tools/termux-elf-cleaner/arghandling.c',
'-o', elf_cleaner])
args = [elf_cleaner]
args = [elf_cleaner, "--api-level", "23"]
args.extend(op.join('native', 'out', arch, bin)
for arch in archs for bin in ['magisk', 'magiskpolicy'])
execv(args)

Binary file not shown.

@ -1 +1 @@
Subproject commit 9c739fffcf477768e2855cd243b167721d19b2de
Subproject commit 55b68119abfca84c9bff009d6505c24862610ca1