aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-08-07 15:16:15 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-08-07 15:16:15 +0000
commit44af9391b17f08e1a175ad52dff41535aaaf87f9 (patch)
tree8e1c31d4c814f93e1d5c960d828b60b1751ac6f0
parenta4c8257b03066fd493a6aea443ca7b1717c1df22 (diff)
downloadgdb-44af9391b17f08e1a175ad52dff41535aaaf87f9.zip
gdb-44af9391b17f08e1a175ad52dff41535aaaf87f9.tar.gz
gdb-44af9391b17f08e1a175ad52dff41535aaaf87f9.tar.bz2
2000-08-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* objfiles.h (SECT_OFF_BSS): Don't detect invalid sect_index_bss here, let the users of the macro do it. * symtab.h (ANOFFSET): Detect here if the section index is not initialized. * xcoffread.c (find_targ_sec): Don't treat .bss as special, because some objfiles may not have that section at all. * coffread.c (cs_to_section): Ditto. * elfread.c (elf_symtab_read): Detect an uninitialized index value. (elfstab_offset_sections): The macro ANOFFSET cannot be used as an lvalue anymore. * remote.c (get_offsets, remote_cisco_objfile_relocate): Don't use ANOFFSET as an lvalue. * objfiles.c (objfile_relocate, objfile_relocate): Don't use ANOFFSET as an lvalue. * symfile.c (default_symfile_offsets): Don't use ANOFFSET as an lvalue.
-rw-r--r--gdb/xcoffread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 53e5469..47d44a5 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -274,7 +274,7 @@ find_targ_sec (bfd *abfd, asection *sect, PTR obj)
else if (bfd_get_section_flags (abfd, sect) & SEC_LOAD)
*args->resultp = SECT_OFF_DATA (objfile);
else
- *args->resultp = SECT_OFF_BSS (objfile);
+ *args->resultp = sect->index;
*args->bfd_sect = sect;
}
}