While building binutils (binutils-2.15.97.tar.bz2) on Cygwin, as follows:
>configure --enable-targets=all --enable-shared --with-gnu-as --with-gnu-ld
>make

I got the following error:
>obj-coff.o: In function `coff_frob_symbol':
>/usr/src/binutils-2.15.97/gas/config/obj-coff.c:1145: undefined
reference to `_an_external_name'

== gas/config/obj-coff.c:1144-1147 ==
#ifdef USE_UNIQUE
  if (an_external_name != NULL)
    unique = an_external_name;
#endif
==

Grepping through the source, an_external_name is defined in symbols.c:
== gas/symbols.c:63-67 ==
#ifdef USE_UNIQUE
/* The name of an external symbol which is
   used to make weak PE symbol names unique.  */
const char * an_external_name;
#endif
==

So it seems that USE_UNIQUE isn't uniformly defined over all source
files - I worked around this by defining it at the top of symbols.c.
--
Muhammad Haggag
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to