initialized and uninitialized data sections have the SEC_ALLOC
flag bit set, but only initialized sections have SEC_LOAD set.
SEC_DATA is ignored since it only gets set for initialized
data. Likewise, SEC_HAS_CONTENTS is ignored now because it
never gets set.
+Sun Oct 24 09:31:05 1993 Fred Fish (fnf@lisa.cygnus.com)
+
+ * elfread.c (elf_symtab_read): Use bfd convention that both
+ initialized and uninitialized data sections have the SEC_ALLOC
+ flag bit set, but only initialized sections have SEC_LOAD set.
+ SEC_DATA is ignored since it only gets set for initialized
+ data. Likewise, SEC_HAS_CONTENTS is ignored now because it
+ never gets set.
+
Sat Oct 23 14:48:18 1993 Doug Evans (dje@canuck.cygnus.com)
* remote-sim.h (sim_stop): New enum.
ms_type = mst_file_text;
}
}
- else if (sym -> section -> flags & SEC_DATA)
+ else if (sym -> section -> flags & SEC_ALLOC)
{
if (sym -> flags & BSF_GLOBAL)
{
- if (sym -> section -> flags & SEC_HAS_CONTENTS)
+ if (sym -> section -> flags & SEC_LOAD)
{
ms_type = mst_data;
}
}
/* Not a special stabs-in-elf symbol, do regular
symbol processing. */
- if (sym -> section -> flags & SEC_HAS_CONTENTS)
+ if (sym -> section -> flags & SEC_LOAD)
{
ms_type = mst_file_data;
}