From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 613 invoked by alias); 15 Aug 2010 01:00:54 -0000 Received: (qmail 589 invoked by uid 48); 15 Aug 2010 01:00:42 -0000 Date: Sun, 15 Aug 2010 01:00:00 -0000 Subject: [Bug c/45286] New: kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zorry at ume dot nu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg01196.txt.bz2 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