From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22169 invoked by alias); 4 May 2011 11:14:37 -0000 Received: (qmail 22161 invoked by uid 22791); 4 May 2011 11:14:37 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 May 2011 11:14:23 +0000 Received: by wwb17 with SMTP id 17so888875wwb.12 for ; Wed, 04 May 2011 04:14:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.145.206 with SMTP id p56mr4730471wej.80.1304507661414; Wed, 04 May 2011 04:14:21 -0700 (PDT) Received: by 10.216.91.15 with HTTP; Wed, 4 May 2011 04:14:21 -0700 (PDT) Date: Wed, 04 May 2011 11:14:00 -0000 Message-ID: Subject: ld: target not found collect2: ld returned 1 exit status From: naga raj To: binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00052.txt.bz2 Hi, I have ported binutils-2.21.to a embedded target. For big endian( I made big-endian as default) it is working fine. 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 Can any one please help me in resolving this issue. Thanks, Nagaraju