------- Comment #3 from hjl dot tools at gmail dot com  2010-08-15 02:25 -------
(In reply to comment #0)
> 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>

It doesn't necessarily mean wrong.

> 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

Please extract a small static testcase which shows the
miscompiled sigaction.c when linking with a libc.a. I
want to know how sigaction.c is compiled.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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

Reply via email to