------- Additional Comments From pluto at pld-linux dot org 2005-03-25 12:37 ------- (In reply to comment #3) > This looks like a bug in your installation of glibc. > #define INIT_SEGV \ > do \ > { \ > struct old_i386_kernel_sigaction kact; \ > kact.k_sa_handler = catch_segv; \ > kact.k_sa_mask = 0; \ > kact.k_sa_flags = 0x4000000; \ > kact.sa_restorer = restore; \ > syscall (SYS_sigaction, SIGSEGV, &kact, NULL); \ > } \ > while (0) > > > This works on a "native" 32bit compiler with a "native" 32bit glibc. > > Can you confirm that this is your bug in your installation of glibc? <bits/syscall.h> from i386 defines SYS_sigaction. x86_64 doesn't define SYS_sigaction (even for -m32 abi). it looks like a bug in dual arch glibc headers.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20349