From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26944 invoked by alias); 26 Apr 2006 12:16:27 -0000 Received: (qmail 26921 invoked by uid 22791); 26 Apr 2006 12:16:24 -0000 X-Spam-Check-By: sourceware.org Received: from mail.artimi.com (HELO mail.artimi.com) (217.40.213.68) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Apr 2006 12:16:21 +0000 Received: from mail.artimi.com ([192.168.1.3]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Apr 2006 13:16:18 +0100 Received: from rainbow ([192.168.1.165]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Apr 2006 13:16:18 +0100 From: "Dave Korn" To: "'Alan Modra'" Cc: "'Nick Clifton'" , Subject: RE: Mainline and branch: --enable-targets=all dead on cygwin Date: Wed, 26 Apr 2006 18:18:00 -0000 Message-ID: <05ea01c6692b$388fdba0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <05e901c66928$bd9e3bf0$a501a8c0@CAM.ARTIMI.COM> Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00380.txt.bz2 On 26 April 2006 12:59, Dave Korn wrote: > obj-coff.o: In function `coff_frob_symbol': > /usr/build/src-binutils/gas/config/obj-coff.c:1055: undefined reference to > `_an_external_name' > collect2: ld returned 1 exit status > make[4]: *** [as-new.exe] Error 1 > > This is due to the fact that USE_UNIQUE is not defined when symbols.c is > compiled, which looks to me to be some kind of problem in the include file > hierarchy; when TE_PE, USE_UNIQUE gets defined in obj-coff.h, but symbols.c > doesn't appear to think it needs to include OBJ_HEADER. Any ideas about > that? Hmm, I've got some myself, and they're starting to look like "This has never been multi-arch[*] compatible, has it?" Seems to me that USE_UNIQUE is a pe-coff thing, and so only gets defined when obj-format.h points directly to obj-coff.h, and not when it points to obj-multi.h. Which in turn suggests to me that the variable needs to be defined always and the relevant code included in an appropriate run-time if (...) test rather than a compile-time #if test. I dunno how multi-arch works in binutils/gas yet, but I'll take a browse through obj-multi.[ch] and see if I can work out the equivalent runtime test to "#ifdef USE_UNIQUE", which shoudl be something more-or-less along the lines of "if current output object format is pe-coff", /I think/. cheers, DaveK [*] - deliberate misapplication of gdb terminology i know i know! -- Can't think of a witty .sigline today....