madscientist / google-coredumper

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

Update autotools #4

Closed achichinov closed 2 years ago

achichinov commented 2 years ago

To support aarch64 copied linux_syscall_support.h from Chromium LSS. LSS for aarch64 does not provide support for sys_sigaction, sys_sigpending, sys_sigsuspend. Replaced these calls with sys_rt_ 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 two errors during compilation.

  1. "redefinition of ‘struct kernel_dirent64’" because linux_syscall_support.h is included twice.
  2. sys0_waitpid is undefined.

To fix the errors commented out the include of linux_syscall_support.h on lines 601, 602 and replaced sys0_waitpid with sys_waitpid