* config/obj-coff.c (obj_frob_symbol): revert previous change,
authorDJ Delorie <dj@redhat.com>
Thu, 20 Jul 2000 23:38:05 +0000 (23:38 +0000)
committerDJ Delorie <dj@redhat.com>
Thu, 20 Jul 2000 23:38:05 +0000 (23:38 +0000)
it breaks linking against DLLs.

gas/ChangeLog
gas/config/obj-coff.c

index ef5c833eb98ac2b3521f561e657c5ef7650a8677..bca4ec028ec757f2958d8245c34fc4d37fb3faf8 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-20  DJ Delorie  <dj@redhat.com>
+
+       * config/obj-coff.c (obj_frob_symbol): revert previous change,
+       it breaks linking against DLLs.
+
 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
 
        * configure.in: Add CRIS support.
index 6da61187d8965c64f888f3e82469f4c4d3bb2be5..41fc595eaf4a8d4cb6adc613043a5185a2cf0844 100644 (file)
@@ -1139,30 +1139,24 @@ 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;
        }
-       if (S_GET_STORAGE_CLASS (symp) == C_NULL)
+      if (!S_IS_DEFINED (symp) && !SF_GET_LOCAL (symp))
        {
-         if (!S_IS_DEFINED (symp) && !SF_GET_LOCAL (symp))
-           {
-             assert (S_GET_VALUE (symp) == 0);
-             S_SET_EXTERNAL (symp);
-           }
-         else if (S_GET_SEGMENT (symp) == text_section
-                  && symp != seg_info (text_section)->sym)
-           {
-             S_SET_STORAGE_CLASS (symp, C_LABEL);
-           }
+         assert (S_GET_VALUE (symp) == 0);
+         S_SET_EXTERNAL (symp);
+       }
+      else if (S_GET_STORAGE_CLASS (symp) == C_NULL)
+       {
+         if (S_GET_SEGMENT (symp) == text_section
+             && symp != seg_info (text_section)->sym)
+           S_SET_STORAGE_CLASS (symp, C_LABEL);
          else
-           {
-             S_SET_STORAGE_CLASS (symp, C_STAT);
-           }
+           S_SET_STORAGE_CLASS (symp, C_STAT);
        }
       if (SF_GET_PROCESS (symp))
        {
This page took 0.044461 seconds and 4 git commands to generate.