From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2812 invoked by alias); 10 May 2011 16:32:47 -0000 Received: (qmail 2803 invoked by uid 22791); 10 May 2011 16:32:47 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 May 2011 16:32:34 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4AGWWsh006019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 May 2011 12:32:32 -0400 Received: from [10.36.10.166] (vpn2-10-166.ams2.redhat.com [10.36.10.166]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4AGWVd6014842; Tue, 10 May 2011 12:32:32 -0400 Message-ID: <4DC968E2.7060705@redhat.com> Date: Tue, 10 May 2011 16:32:00 -0000 From: Nick Clifton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: naga raj CC: binutils@sourceware.org Subject: Re: ld: target not found collect2: ld returned 1 exit status References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00119.txt.bz2 Hi Nagaraju, > But when I use -mlittle-endian flag in compiler it is generating > error as ld: target not found collect2: ld returned 1 exit status. > > So in my attempts I have used -c -mlittle-endian flags in compilation > > ex: zz-gcc -c -mlittle-endian abc.c > > and I linked manually with -EL option then it is working fine. > > ex: zz-ld -N -EL abc.o Possibly gcc is not passing the -EL option to the linker when performing the final link ? Cheers Nick