From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6574 invoked by alias); 26 Aug 2005 18:01:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 6419 invoked by uid 48); 26 Aug 2005 18:01:39 -0000 Date: Fri, 26 Aug 2005 18:19:00 -0000 Message-ID: <20050826180139.6418.qmail@sourceware.org> From: "ngmlinux at gmail dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20020125014600.5487.jsantala@tml.hut.fi> References: <20020125014600.5487.jsantala@tml.hut.fi> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/5487] arm-linux-gcj cross-compiler generates bad assembler-code X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg03065.txt.bz2 List-Id: ------- Additional Comments From ngmlinux at gmail dot com 2005-08-26 18:01 ------- I've been able to reproducte the same exact issue in arm-linux-gcc-4.0.1 which I build from source by the following process: ===code============================================================ ../configure --target=arm-linux --with-gnu-as --with-gnu-ld --enable-multilib --enable-languages=c,c++,java --disable-nls --nfp --with-cpu-xscale --with-softfloat-support=internal make make install =================================================================== I then compiled a HelloWorld.java App using the newly created gcj as follows: ===code============================================================ /usr/local/bin/arm-linux-gcj -static HelloWorld.java --main=HelloWorldApp -g -o HelloWorld.exe =================================================================== Compilation seemed to go fine without errors. HelloWorld.exe appears to be a correctly formated binary according to "file": ===code============================================================ HelloWorld.exe: ELF 32-bit LSB executable, Advanced RISC Machines ARM, version 1, statically linked, not stripped =================================================================== The binary was then downloaded to a PXA-255 based system running armcore-2.6.7 linux. Upon execution the executable reports the segmentation fault: ===code============================================================ [root@ARMCore test]$ ./HelloWorld.exe Segmentation fault =================================================================== I'd like to see this bug reopened. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5487