http://bugs.gentoo.org/show_bug.cgi?id=283470
kact.sa_restorer = &restore_rt; get miss compile with -fPIE
with -fPIC the code get
48 8d 05 2e ff ff ff    lea    -0xd2(%rip),%rax   # 10 <__restore_rt>
and with -fPIE it get
48 8b 05 2e ff ff ff    mov    -0xd2(%rip),%rax   # 10 <__restore_rt>
Later on when we try to use the function in some code it segfault.
so it would seem gcc is miscompiling the x86_64 sigaction.c code. 
specifically, this bit of sysdeps/unix/sysv/linux/x86_64/sigaction.c


-- 
           Summary: kact.sa_restorer = &restore_rt; in sigaction.c glibc get
                    miss compile with -fPIE on x86_64
           Product: gcc
           Version: 4.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zorry at ume dot nu
GCC target triplet: x86_64


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286

Reply via email to