Commit db2ba88
committed
fix: build arm64 bridge with GOOS=android for Termux compatibility
Android's Bionic libc requires PT_TLS alignment >= 64 for ARM64,
but GOOS=linux produces alignment=8, causing the linker to abort
with 'executable's TLS segment is underaligned'.
Fix: build linux/arm64 binary with GOOS=android (which omits the
TLS segment entirely, since static PIE binaries don't need it).
Filename stays cya-bridge-linux-arm64 so the install script works.
Verified: ELF shows e_type=3 (PIE), no PT_TLS segment.1 parent abec1ab commit db2ba88
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
0 commit comments