0005-fix-sparc64-stackpointer.patch 631 B

12345678910111213141516
  1. Fix sparc64 build.
  2. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  3. diff -Nur libsigsegv-2.10.orig/src/fault-linux-sparc.h libsigsegv-2.10/src/fault-linux-sparc.h
  4. --- libsigsegv-2.10.orig/src/fault-linux-sparc.h 2009-08-01 17:06:49.000000000 +0200
  5. +++ libsigsegv-2.10/src/fault-linux-sparc.h 2015-11-29 11:55:29.000000000 +0100
  6. @@ -27,4 +27,8 @@
  7. (see also <asm/sigcontext.h>)
  8. are quite different types. */
  9. +#if __WORDSIZE == 64
  10. +#define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.mc_gregs[REG_O6]
  11. +#else
  12. #define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[REG_O6]
  13. +#endif