* ecoff.c (ecoff_set_symbol_info): Removed special handling for
authorIan Lance Taylor <ian@airs.com>
Fri, 6 Aug 1993 20:04:22 +0000 (20:04 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 6 Aug 1993 20:04:22 +0000 (20:04 +0000)
scBss and scSBss symbols, since it was wrong.

bfd/ChangeLog
bfd/ecoff.c

index ab2b7f485dae40ede0966043526bb2d8b6afa060..2fcb8adf0a693cc5c64f105472a3da6dea7b5cc3 100644 (file)
@@ -10,6 +10,9 @@ Fri Aug  6 15:13:22 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
 
 Fri Aug  6 12:28:38 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
+       * ecoff.c (ecoff_set_symbol_info): Removed special handling for
+       scBss and scSBss symbols, since it was wrong.
+
        * Makefile.in (coff-mips.o, coff-alpha.o): Don't depend on
        coffcode.h.
 
index 685ab4e869d2730445e8b22efbf9b3b7ed81dccb..84ae59b4c8a68ead119739f066ffab148318b0eb 100644 (file)
@@ -901,16 +901,8 @@ ecoff_set_symbol_info (abfd, ecoff_sym, asym, ext, indirect_ptr_ptr)
       asym->value -= asym->section->vma;
       break;
     case scBss:
-      if (ext)
-       {
-         asym->section = &bfd_com_section;
-         asym->flags = 0;
-       }
-      else
-       {
-         asym->section = bfd_make_section_old_way (abfd, ".bss");
-         asym->value -= asym->section->vma;
-       }
+      asym->section = bfd_make_section_old_way (abfd, ".bss");
+      asym->value -= asym->section->vma;
       break;
     case scRegister:
       asym->flags = BSF_DEBUGGING;
@@ -937,8 +929,7 @@ ecoff_set_symbol_info (abfd, ecoff_sym, asym, ext, indirect_ptr_ptr)
       break;
     case scSBss:
       asym->section = bfd_make_section_old_way (abfd, ".sbss");
-      if (! ext)
-       asym->value -= asym->section->vma;
+      asym->value -= asym->section->vma;
       break;
     case scRData:
       asym->section = bfd_make_section_old_way (abfd, ".rdata");