From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22727 invoked by alias); 31 Aug 2005 20:54:24 -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 22591 invoked by uid 48); 31 Aug 2005 20:54:18 -0000 Date: Wed, 31 Aug 2005 20:59:00 -0000 From: "ngmlinux at gmail dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20050831205412.23662.ngmlinux@gmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/23662] New: Binaries generated by arm-linux-gcj segfault on execution on arm target X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg03658.txt.bz2 List-Id: A similar bug was reported against 3.1 (# 5487). A new bug is being opened as that bug had been misreported as fixed against 3.1 and has since been closed. I've been able to reproduce the same exact issue in arm-linux-gcc-4.0.1 as reported in Bug # 5487 against gcc-3.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 =================================================================== -- Summary: Binaries generated by arm-linux-gcj segfault on execution on arm target Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: critical Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ngmlinux at gmail dot com CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org GCC host triplet: x86, x86_64 GCC target triplet: arm http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23662