diff options
author | Fred Fish <fnf@specifix.com> | 1993-10-24 16:41:11 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-10-24 16:41:11 +0000 |
commit | 90141f9c4e2b89c37a954acfb6ec26c3c015dd98 (patch) | |
tree | 4b8cc9c58f6837def906fb936d644bc5d22dcfd7 /gdb | |
parent | ab0751c89582d835820e4fe72e7b2e3092cf74e9 (diff) | |
download | gdb-90141f9c4e2b89c37a954acfb6ec26c3c015dd98.zip gdb-90141f9c4e2b89c37a954acfb6ec26c3c015dd98.tar.gz gdb-90141f9c4e2b89c37a954acfb6ec26c3c015dd98.tar.bz2 |
* 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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/elfread.c | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 442f2ce..73b0177 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +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. diff --git a/gdb/elfread.c b/gdb/elfread.c index 9b9e364..230afec 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -319,11 +319,11 @@ elf_symtab_read (abfd, addr, objfile) 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; } @@ -391,7 +391,7 @@ elf_symtab_read (abfd, addr, objfile) } /* 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; } |