summaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-05-11 20:39:58 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-05-11 20:39:58 +0000
commit9ee391e49a273ea52fee5f09e926921917187f16 (patch)
tree5f21f8a01ec4ac35685cb33217334387623a90a8 /gdb/coffread.c
parent84f5f326cc3328b4e4ff42bee9f4b9a5c4c2c859 (diff)
downloadgdb-9ee391e49a273ea52fee5f09e926921917187f16.tar.gz
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.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 6f6e6cb75f4..7b9f5af1980 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -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