madscientist / google-coredumper

Google coredumper library
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Support compilation for __aarch64__. #5

Closed achichinov closed 2 years ago

achichinov commented 2 years ago

The test coredumper_unittest fails and not fixed yet.

To support aarch64 copied linux_syscall_support.h from Chromium LSS https://chromium.googlesource.com/linux-syscall-support

Modified linux_syscall_support.h to fix a redefinition of struct kernel_dirent64.

LSS for aarch64 does not provide support for sys_sigaction, sys_sigpending, sys_sigsuspend. Replaced these calls with sysrt versions and updated their parameters list.

Updated parameters list of sys_prctl Un-track libtool (it is generated by configure) The linuxthreads.c is compiled as a C file, it makes the compiler skip #ifdef __cplusplus on line 592 and selects the #else branch. This triggers an error "sys0_waitpid is undefined." Replaced sys0_waitpid with sys_waitpid

Added includes in thread_lister.c to fix a warning "implicit declaration of function ‘getpid’"