Repository navigation
RedTerm v2.3.1
Fixed:
- Fix proot TLS alignment for arm64 (p_align 8->64) and build proot v5.1.107.101
- Update proot to v5.1.107.101 (commit 968ae1be) with link2symlink fix
- Patch PT_TLS p_align 8->64 for arm64-v8a to satisfy bionic's TLS alignment requirement
- Build with NDK r27c for arm64-v8a
- This fixes the 'TLS segment underaligned' abort on Android 14+ devices
Updated:
- Build proot v5.1.107.101 with link2symlink fix and TLS alignment fix for arm64
- Update proot to v5.1.107.101 (commit 968ae1be) with link2symlink fix
- Fix TLS alignment for arm64-v8a: patch PT_TLS p_align 8->64
- armv7 binary built with linker script for TLS alignment (known issue: TLS alignment not fully fixed)
- All 4 architectures built with proot v5.1.107.101
- Proot binaries updated in jniLibs for all 4 architectures
- Fix proot TLS alignment for the 32-bit ABIs and rebuild all four binaries
bionic's ARM32 static-TLS check (StaticTlsLayout in bionic_elf_tls.cpp)
gates on p_align AND the vaddr skew together: a plain NDK link emits
p_align 8 with a 16-aligned vaddr, which aborts on-device with
"executable's TLS segment is underaligned ... needs to be at least 32
for ARM Bionic". Patching the program header alone cannot fix the vaddr
half, because p_vaddr also feeds init_ptr, the address bionic copies the
TLS template from. Re-link armv7 and i686 with a linker script that
START-aligns .tdata at 32 (PT_TLS p_align 32, skew 0); the previous
scripts only end-aligned .tdata and their ld.bfd re-link was a no-op
(the NDK ships no ld.bfd). 64-bit keeps the p_align 64 program-header
patch, which now actually writes the file back. build-proot.sh: the
-T script is baked into the main link, the 32-bit branch verifies
instead of the dead re-link, the ABI case is fixed (i686's ABI is
"x86"), and the loader page-size injection is idempotent. All four
ABIs rebuilt from d4d2a19: arm64 p_align 64 / armv7 32 / i686 32 /
x86_64 64, every LOAD 16 KB aligned, entry at bionic's static _start.
- Build proot from 3c6aa6f so the link2symlink/fake_id0 fixes reach the binaries
Fixed:
The rm -rf .git/objects/pack EPERM in a distro session is a link2symlink
issue, fixed in the commit series between d4d2a19 and 3c6aa6f (968ae1b
'link symbolic links as symbolic links', the fake_id0 statx/chmod record
series, 32-bit getdents parsing). The previous binaries were built from
d4d2a19, which predates all of it, so the TLS fix alone could not heal
it. Bump PROOT_VERSION to 3c6aa6f and rebuild all four ABIs:
arm64 p_align 64 (vaddr 64-aligned), armv7 p_align 32 (skew 0),
i686 p_align 32 (skew 0), x86_64 p_align 64 (no bionic gate there, so
the vaddr-64 hard guard now applies to arm64 only). 16 KB aligned
throughout.