From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28829 invoked by alias); 3 Apr 2009 13:57:35 -0000 Received: (qmail 28819 invoked by uid 22791); 3 Apr 2009 13:57:34 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from ppsw-5.csi.cam.ac.uk (HELO ppsw-5.csi.cam.ac.uk) (131.111.8.135) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Apr 2009 13:57:21 +0000 Received: from lapwing-gw-1.csx.cam.ac.uk ([131.111.1.66]:47515 helo=ernest-2.christs.cam.ac.uk) by ppsw-5.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.155]:25) with esmtpsa (LOGIN:srk31) (TLSv1:DHE-RSA-AES256-SHA:256) id 1LpjtW-0003g0-Ie (Exim 4.70) (return-path ); Fri, 03 Apr 2009 14:57:18 +0100 Date: Fri, 03 Apr 2009 13:57:00 -0000 From: Stephen Kell To: Andrew Haley Cc: java@gcc.gnu.org Subject: Re: CNI and interface methods Message-ID: <20090403135713.2fb36ecc@ernest-2.christs.cam.ac.uk> In-Reply-To: <49D5CAD4.8040700@redhat.com> References: <20090402193827.GD4939@font.cl.cam.ac.uk> <49D5CAD4.8040700@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00011.txt.bz2 On Fri, 03 Apr 2009 09:37:40 +0100, Andrew Haley wrote: > It's because you're using -Bsymbolic but not -fpic. -Bsymbolic is > dangerous, and any use of it without PIC means instant death. So, > compile everything PIC, even the executable, and you'll be fine. > That worked for me on your example. Thanks for this. I thought I already was compiling everything -fpic, but maybe I missed something. Was there a particular make rule that was in need of -fpic, that you altered? I still can't find it. (Actually I was using -fPIC, but I've tried again with -fpic instead, in case it made a difference... still getting the same segfault though.) Stephen