2000-05-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 11 May 2000 20:39:58 +0000 (20:39 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 11 May 2000 20:39:58 +0000 (20:39 +0000)
* coffread.c (coff_symtab_read): In the case of C_THUMBEXT |
  C_THUMBEXTFUNC | C_EXT, sec will never ever be the index for
  .rodata, because cs_to_section doesn't deal with .rodata. Fix test
  accordingly.

gdb/ChangeLog
gdb/coffread.c

index b624ed396b5b4b2a753d500ff1fb832cca0a707e..cc58ae521addbdf55a7c2c1525e5a79d65736ab5 100644 (file)
@@ -1,3 +1,10 @@
+2000-05-11  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
+
+       * coffread.c (coff_symtab_read): In the case of C_THUMBEXT |
+       C_THUMBEXTFUNC | C_EXT, sec will never ever be the index for
+       .rodata, because cs_to_section doesn't deal with .rodata. Fix test
+       accordingly.
+
 Thu May 11 21:33:59 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * gdbarch.sh (gdbarch_dump): Print the value of GDB_MULTI_ARCH.
index 6f6e6cb75f453a2da967b540ba2716b8a68cbd85..7b9f5af19801b4d04eddc3639c7d06c930a6f2b7 100644 (file)
@@ -969,7 +969,7 @@ coff_symtab_read (symtab_offset, nsyms, objfile)
                    || cs->c_sclass == C_THUMBEXT)
                  tmpaddr += ANOFFSET (objfile->section_offsets, sec);
 
-               if (sec == SECT_OFF_TEXT (objfile) || sec == SECT_OFF_RODATA (objfile))
+               if (sec == SECT_OFF_TEXT (objfile))
                  {
                    ms_type =
                      cs->c_sclass == C_EXT || cs->c_sclass == C_THUMBEXTFUNC