]> git.eshelyaron.com Git - emacs.git/commit
Fix program execution on Android 15 QPR2 Beta
authorPo Lu <luangruo@yahoo.com>
Sun, 9 Feb 2025 04:06:52 +0000 (12:06 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:47:47 +0000 (09:47 +0100)
commit783cd9e6b80f42c9797bb026cd1893486642cb20
treebb9b69c3e49cc0ebca0a6a7f24786881ab7fba16
parenta0831e5642c3c344462c3a6ec351a66c12f62fd6
Fix program execution on Android 15 QPR2 Beta

* exec/trace.c (process_vm_readv, process_vm_writev): New
function pointers.  Attempt to load them on recent Android
systems when `exec' was not linked with a sufficiently
up-to-date libc.
(read_memory, user_copy): Always use process_vm_readv and
process_vm_writev if available.
(handle_openat): Write trailing NULL byte of filename to user
buffer.
(exec_init): Attempt to dlsym process_vm_readv and
process_vm_writev.

(cherry picked from commit 563efd6838c1b62c8962385911b5fd5c5637ab96)
exec/trace.c