This patch adds the inline syscall support for aarch64 instead of relying
on the syscall runtime function. I had to use the macro system instead of
template one (as x86_64 does) because I have hit a issue with GCC where
named register through asm were not used in template instanciation
(and it has shown on both GCC 4.8 and GCC 4.9).
Details
Diff Detail
Event Timeline
Updated patch with recommended changes:
- Add sanitizer_syscall_linux_aarch64.inc to lib/sanitizer_common/CMakeLists.txt
- Use u64 on syscall wrappers
How did you test this?
lib/sanitizer_common/sanitizer_syscall_linux_aarch64.inc | ||
---|---|---|
131 | Some comments about this would be welcome. |
The test is basically run the sanitizers tests and check for regression, since all internal syscalls will use the wrappers instead of normal syscall libc function.
lib/sanitizer_common/sanitizer_syscall_linux_aarch64.inc | ||
---|---|---|
131 | This is the default return code Linux assumes for syscall failures (you can check on libc projects, like glibc and must, that they use the same return check value). |
lib/sanitizer_common/sanitizer_syscall_linux_aarch64.inc | ||
---|---|---|
131 | I mean, on the code. :) |
Please sort the file names.