From 440ecb3800d2eeafb4f64047c22947faa8f9db1e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 28 Mar 2001 17:24:01 +0000 Subject: [PATCH] 2001-03-28 H.J. Lu * read.c (equals): Set to local for COFF only if it hasn't been defined before. --- gas/ChangeLog | 5 +++++ gas/read.c | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 6ae757f023f..ca08411f9b6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-03-28 H.J. Lu + + * read.c (equals): Set to local for COFF only if it hasn't been + defined before. + 2001-03-28 Alan Modra * config/tc-hppa.c (DEFAULT_LEVEL): Define. diff --git a/gas/read.c b/gas/read.c index cb4c7e3f0e7..beb761f3717 100644 --- a/gas/read.c +++ b/gas/read.c @@ -4857,6 +4857,13 @@ equals (sym_name, reassign) } else { +#ifdef OBJ_COFF + int local; + + symbolP = symbol_find (sym_name); + local = symbolP == NULL; + if (local) +#endif /* OBJ_COFF */ symbolP = symbol_find_or_make (sym_name); /* Permit register names to be redefined. */ if (!reassign @@ -4866,7 +4873,8 @@ equals (sym_name, reassign) #ifdef OBJ_COFF /* "set" symbols are local unless otherwise specified. */ - SF_SET_LOCAL (symbolP); + if (local) + SF_SET_LOCAL (symbolP); #endif /* OBJ_COFF */ pseudo_set (symbolP); -- 2.30.2