Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / somread.c
index c2716da06d5816df1b9acf860ad5bc3af16cfc17..ed0fe976997ba187bddd7b980c4b36b7e46348ba 100644 (file)
@@ -282,11 +282,15 @@ som_symtab_read (abfd, objfile, section_offsets)
 
        /* This can happen for common symbols when -E is passed to the
           final link.  No idea _why_ that would make the linker force
-          common symbols to have an SS_UNSAT scope, but it does.  */
+          common symbols to have an SS_UNSAT scope, but it does.
+
+          This also happens for weak symbols, but their type is
+          ST_DATA.  */
        case SS_UNSAT:
          switch (bufp->symbol_type)
            {
              case ST_STORAGE:
+             case ST_DATA:
                symname = bufp->name.n_strx + stringtab;
                bufp->symbol_value += data_offset;
                ms_type = mst_data;
This page took 0.070475 seconds and 4 git commands to generate.