mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-12 22:24:53 +00:00
We were using some wrong syscall numbers in vki-scnums-arm64-linux.h arm64 doesn't implement a couple of old deprecated system calls like rename, dup2, getpgrp and fork. Adjust m_libcfile.c rename and dup2 functions to use renameat (also on tilegx) and dup3 (with fcntl fallback for bad oldfd). And in m_libcproc.c implement getpgrp as getpgid(0). Also don't compile the fork syswrap on arm64 (it only supports clone). In practice this only affected callgrind which was unable to rename dump files in some cases and ELF core dumps might have contained some bogus prstatus fields. Related to bug #359503 - Add missing syscalls for aarch64 (arm64) Reported by Marcin Juszkiewicz who also posted a nice overview of system calls on different linux architectures: https://marcin.juszkiewicz.com.pl/2016/03/05/from-a-diary-of-aarch64-porter-system-calls/ git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15824
37 KiB
37 KiB