]> git.eshelyaron.com Git - emacs.git/commit
Replace AT_EXECFN in auxiliary vectors of programs executed on Android
authorPo Lu <luangruo@yahoo.com>
Sun, 13 Apr 2025 10:50:59 +0000 (18:50 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 13 Apr 2025 21:01:09 +0000 (23:01 +0200)
commit16843a1fa0508bd87c151c133802ef82f4e8cb9e
tree70ba99e1671085fd88f73926ae58838663164ae2
parentd161df02711f18ce679e8ca7b2f9e1badc12fb2b
Replace AT_EXECFN in auxiliary vectors of programs executed on Android

* exec/exec.c (insert_args, exec_0): On non-MIPS systems, copy
NAME and its length to the loader area.  State that MIPS support
is not yet available (though it will be pending the availability
of a functioning emulator).

* exec/loader-aarch64.s (_start):

* exec/loader-armeabi.s (_start):

* exec/loader-x86.s (_start):

* exec/loader-x86_64.s (_start): Displace auxv, environ, and
argv to create sufficient space for the provided file name, and
copy the file name there.  Replace AT_EXECFN to refer to this
space.

(cherry picked from commit 7a01350624e1665e707f98e13d51f53e9f87ce95)
exec/exec.c
exec/loader-aarch64.s
exec/loader-armeabi.s
exec/loader-x86.s
exec/loader-x86_64.s
exec/trace.c