public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Dave Korn" <dave.korn@artimi.com>
To: "'Alan Modra'" <amodra@bigpond.net.au>
Cc: "'Nick Clifton'" <nickc@redhat.com>, 	<binutils@sourceware.org>
Subject: RE: Mainline and branch: --enable-targets=all dead on cygwin
Date: Wed, 26 Apr 2006 18:18:00 -0000	[thread overview]
Message-ID: <05ea01c6692b$388fdba0$a501a8c0@CAM.ARTIMI.COM> (raw)
In-Reply-To: <05e901c66928$bd9e3bf0$a501a8c0@CAM.ARTIMI.COM>

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....

  reply	other threads:[~2006-04-26 12:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-19 16:27 Dave Korn
2006-04-26 11:31 ` Nick Clifton
2006-04-26 12:47   ` Dave Korn
2006-04-26 14:38     ` Alan Modra
2006-04-26 16:59       ` Dave Korn
2006-04-26 18:18         ` Dave Korn [this message]
2006-04-26 20:07         ` Alan Modra
2006-05-29 18:00           ` Aaron W. LaFramboise

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='05ea01c6692b$388fdba0$a501a8c0@CAM.ARTIMI.COM' \
    --to=dave.korn@artimi.com \
    --cc=amodra@bigpond.net.au \
    --cc=binutils@sourceware.org \
    --cc=nickc@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).