mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Upgrade termux-elf-cleaner to strip DT_PREINIT_ARRAY
This commit is contained in:
parent
b9d0a3b3d4
commit
a07d4080b6
7
build.py
7
build.py
@ -195,9 +195,12 @@ def clean_elf():
|
|||||||
else:
|
else:
|
||||||
elf_cleaner = op.join('native', 'out', 'elf-cleaner')
|
elf_cleaner = op.join('native', 'out', 'elf-cleaner')
|
||||||
if not op.exists(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])
|
'-o', elf_cleaner])
|
||||||
args = [elf_cleaner]
|
args = [elf_cleaner, "--api-level", "23"]
|
||||||
args.extend(op.join('native', 'out', arch, bin)
|
args.extend(op.join('native', 'out', arch, bin)
|
||||||
for arch in archs for bin in ['magisk', 'magiskpolicy'])
|
for arch in archs for bin in ['magisk', 'magiskpolicy'])
|
||||||
execv(args)
|
execv(args)
|
||||||
|
Binary file not shown.
@ -1 +1 @@
|
|||||||
Subproject commit 9c739fffcf477768e2855cd243b167721d19b2de
|
Subproject commit 55b68119abfca84c9bff009d6505c24862610ca1
|
Loading…
x
Reference in New Issue
Block a user