From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29933 invoked by alias); 15 Aug 2010 20:36:34 -0000 Received: (qmail 29852 invoked by uid 48); 15 Aug 2010 20:36:15 -0000 Date: Sun, 15 Aug 2010 20:36:00 -0000 Message-ID: <20100815203615.29851.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/45286] kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" 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/msg01233.txt.bz2 ------- Comment #7 from hjl dot tools at gmail dot com 2010-08-15 20:36 ------- It works for me: (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /export/home/hjl/bugs/gcc/pr45286/foo Breakpoint 1, sigvtalarm (foo=0) at foo.c:25 25 { (gdb) x/1g $rsp 0x7fffffffde38: 0x0000000000401060 (gdb) disass 0x0000000000401060 Dump of assembler code for function __restore_rt: 0x0000000000401060 <+0>: mov $0xf,%rax 0x0000000000401067 <+7>: syscall 0x0000000000401069 <+9>: nopl 0x0(%rax) End of assembler dump. (gdb) You have to show me how I can reproduce miscompiled sigaction.c. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286