summaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2000-07-24 17:50:35 +0000
committerDJ Delorie <dj@delorie.com>2000-07-24 17:50:35 +0000
commit82d4e0ad0707822b921e26a115da7c50b9bb0bb4 (patch)
tree9b8d3f0b7bdbaf240a726297620218dd6a770308 /gas/config
parentcdf2e22ee908fa7c558fca0e90555d04299d9da4 (diff)
downloadbinutils-redhat-82d4e0ad0707822b921e26a115da7c50b9bb0bb4.tar.gz
* config/obj-coff.c (obj_frob_symbol): Don't merge
labels. Don't merge if the symbol isn't constant. Return immediately if a symbol is merged.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-coff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 41fc595eaf..935e3f253d 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1139,11 +1139,14 @@ coff_frob_symbol (symp, punt)
symbolS *real;
if (!SF_GET_LOCAL (symp)
&& !SF_GET_STATICS (symp)
+ && S_GET_STORAGE_CLASS (symp) != C_LABEL
+ && symbol_constant_p(symp)
&& (real = symbol_find_base (S_GET_NAME (symp), DO_NOT_STRIP))
&& real != symp)
{
c_symbol_merge (symp, real);
*punt = 1;
+ return;
}
if (!S_IS_DEFINED (symp) && !SF_GET_LOCAL (symp))
{