aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-09-09 13:19:51 +0000
committerAlan Modra <amodra@gmail.com>2009-09-09 13:19:51 +0000
commit22ba0981786d9fc6ab459bc449735d51f437dbe8 (patch)
tree1aea7c34b378078ab887d80ec10ee1f88cfd22e3 /gas/symbols.c
parent53b0eb27a9f231167f09e862695004b89c3d3c1a (diff)
downloadgdb-22ba0981786d9fc6ab459bc449735d51f437dbe8.zip
gdb-22ba0981786d9fc6ab459bc449735d51f437dbe8.tar.gz
gdb-22ba0981786d9fc6ab459bc449735d51f437dbe8.tar.bz2
* config/obj-coff.h (USE_UNIQUE): Don't define.
* config/obj-coff.c (weak_uniquify): Use an_external_name when TE_PE. * symbols.c (an_external_name): Define when TE_PE. (S_SET_EXTERNAL): Assign an_external_name when TE_PE. * tc.h (an_external_name): Declare when TE_PE.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index c72946b..9ce4588 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -59,7 +59,7 @@ symbolS abs_symbol;
#define LOCAL_LABEL_CHAR '\002'
struct obstack notes;
-#ifdef USE_UNIQUE
+#ifdef TE_PE
/* The name of an external symbol which is
used to make weak PE symbol names unique. */
const char * an_external_name;
@@ -2204,7 +2204,7 @@ S_SET_EXTERNAL (symbolS *s)
s->bsym->flags |= BSF_GLOBAL;
s->bsym->flags &= ~(BSF_LOCAL | BSF_WEAK);
-#ifdef USE_UNIQUE
+#ifdef TE_PE
if (! an_external_name && S_GET_NAME(s)[0] != '.')
an_external_name = S_GET_NAME (s);
#endif