NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: xsrc/44159: startx fails w/ recent xsrc changes in -current



this one is likely a problem with the csu _init() calls in to libpixman
leaving the $rsp unaligned for amd64.  the patch i have based on an idea
from joerg is below.  you'll need to rebuild and install lib/csu and
then rebuild and install libpixman itself to fix this problem.


.mrg.


Index: arch/x86_64/crtbegin.S
===================================================================
RCS file: /cvsroot/src/lib/csu/arch/x86_64/crtbegin.S,v
retrieving revision 1.1
diff -p -r1.1 crtbegin.S
*** arch/x86_64/crtbegin.S      7 Aug 2010 18:01:34 -0000       1.1
--- arch/x86_64/crtbegin.S      27 Nov 2010 10:27:08 -0000
*************** __do_global_dtors_aux:
*** 94,99 ****
--- 94,100 ----
  #endif
  
        pushq   %rbx
+       pushq   %rbx
        leaq    8+__DTOR_LIST__(%rip), %rbx
  3:
        movq    (%rbx), %rax
*************** __do_global_dtors_aux:
*** 104,109 ****
--- 105,111 ----
        jmp     3b      
  4:
        popq    %rbx
+       popq    %rbx
  
        cmpq    $0, __deregister_frame_info@GOTPCREL(%rip)
        je      5f
*************** __do_global_ctors_aux:
*** 137,142 ****
--- 139,145 ----
  3:
  
        pushq   %rbx
+       pushq   %rbx
        leaq    -8+__CTOR_LIST_END__(%rip), %rbx
  4:
        movq    (%rbx), %rax
*************** __do_global_ctors_aux:
*** 148,153 ****
--- 151,157 ----
  
  5:
        popq    %rbx
+       popq    %rbx
  
        ret
  


Home | Main Index | Thread Index | Old Index