From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1875 invoked by alias); 19 Aug 2009 09:34:19 -0000 Received: (qmail 1866 invoked by uid 22791); 19 Aug 2009 09:34:18 -0000 X-SWARE-Spam-Status: No, hits=1.2 required=5.0 tests=BAYES_50,J_CHICKENPOX_13,J_CHICKENPOX_32,SPF_PASS X-Spam-Check-By: sourceware.org Received: from f143.mail.ru (HELO f143.mail.ru) (217.69.128.98) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Aug 2009 09:34:12 +0000 Received: from mail by f143.mail.ru with local id 1MdhYW-0005WQ-00 for gcc@gcc.gnu.org; Wed, 19 Aug 2009 13:34:08 +0400 Received: from [188.162.14.212] by win.mail.ru with HTTP; Wed, 19 Aug 2009 13:34:08 +0400 From: Sergey Anosov To: gcc@gcc.gnu.org Subject: mips64 gcc 3.3.6 problem Mime-Version: 1.0 Date: Wed, 19 Aug 2009 11:53:00 -0000 X-Mru-Data: 2000:1:1:70:188:0 Reply-To: Sergey Anosov Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00328.txt.bz2 Hi all! I've made a toolchain for mips64el - binutils 2.17.90 + gcc 3.3.6 + glibc 2.3.6. I've successfully compile a linux 2.16.62 kernel and run it in qemu. But when I try to execute dynamically compiled "Hello world" program - I' ve got a SIGSEGV" do_page_fault() #2: sending SIGSEGV to a.out for invalid write access to 000000555556a7a7 (epc == 0000005555558010, ra == 0000005555557cd0) @@@ do_page_fault Segmentation fault Statically linked executables are running without any problem! If I use gcc 4.1.3 + glibc 2.7 + binutils 2.19 - everything ok. I tried to install binutils 2.19 instead of binutils 2.17 (binutils 2.19, gcc 3.3.6 and glibc 2.3.6) - and dynamically linked programs are running. So, I think it is a compiler problem, isn'it? Does anybody have such problem? Or mips64 platform and gcc 3.3.6 are not compatible? Thanks!