public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45286]  New: kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64
@ 2010-08-15  1:00 zorry at ume dot nu
  2010-08-15  1:02 ` [Bug c/45286] " zorry at ume dot nu
                   ` (19 more replies)
  0 siblings, 20 replies; 22+ messages in thread
From: zorry at ume dot nu @ 2010-08-15  1:00 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-07-04 15:40 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45286-4@http.gcc.gnu.org/bugzilla/>
2015-07-04 15:23 ` [Bug c/45286] kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64 zorry at gentoo dot org
2015-07-04 15:40 ` hjl.tools at gmail dot com
2010-08-15  1:00 [Bug c/45286] New: " zorry at ume dot nu
2010-08-15  1:02 ` [Bug c/45286] " zorry at ume dot nu
2010-08-15  1:04 ` zorry at ume dot nu
2010-08-15  2:25 ` hjl dot tools at gmail dot com
2010-08-15  4:41 ` vapier at gentoo dot org
2010-08-15  5:40 ` hjl dot tools at gmail dot com
2010-08-15  5:49 ` vapier at gentoo dot org
2010-08-15 20:36 ` hjl dot tools at gmail dot com
2010-08-15 20:41 ` vapier at gentoo dot org
2010-08-15 20:46 ` hjl dot tools at gmail dot com
2010-08-15 21:01 ` vapier at gentoo dot org
2010-08-15 21:15 ` hjl dot tools at gmail dot com
2010-08-15 21:32 ` zorry at ume dot nu
2010-08-15 21:36 ` hjl dot tools at gmail dot com
2010-08-15 21:59 ` vapier at gentoo dot org
2010-08-15 22:12 ` rguenth at gcc dot gnu dot org
2010-08-16 11:16 ` jakub at gcc dot gnu dot org
2010-08-18  3:23 ` vapier at gentoo dot org
2010-08-18  3:29 ` hjl dot tools at gmail dot com
2010-08-18  3:39 ` vapier at gentoo dot org
2010-08-18  3:59 ` hjl dot tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).