* dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
symbol types are, by definition, in the .data section, so it is correct to use SECT_OFF_DATA (objfile) here, not data_sect_index. If there is no .data section, there should be no N_DATA or N_DATA | N_EXT symbols.
This commit is contained in:
parent
93938d4744
commit
14f751370b
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2003-09-12 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
|
||||||
|
symbol types are, by definition, in the .data section, so it is
|
||||||
|
correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
|
||||||
|
If there is no .data section, there should be no N_DATA or N_DATA
|
||||||
|
| N_EXT symbols.
|
||||||
|
|
||||||
2003-09-12 Mark Kettenis <kettenis@gnu.org>
|
2003-09-12 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* amd64fbsd-tdep.c: Fix sigtramp recognition.
|
* amd64fbsd-tdep.c: Fix sigtramp recognition.
|
||||||
|
|
|
@ -1409,7 +1409,7 @@ read_dbx_symtab (struct objfile *objfile)
|
||||||
|
|
||||||
case N_DATA | N_EXT:
|
case N_DATA | N_EXT:
|
||||||
case N_NBDATA | N_EXT:
|
case N_NBDATA | N_EXT:
|
||||||
nlist.n_value += ANOFFSET (objfile->section_offsets, data_sect_index);
|
nlist.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile));
|
||||||
goto record_it;
|
goto record_it;
|
||||||
|
|
||||||
case N_BSS:
|
case N_BSS:
|
||||||
|
@ -1476,7 +1476,7 @@ read_dbx_symtab (struct objfile *objfile)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case N_DATA:
|
case N_DATA:
|
||||||
nlist.n_value += ANOFFSET (objfile->section_offsets, data_sect_index);
|
nlist.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile));
|
||||||
goto record_it;
|
goto record_it;
|
||||||
|
|
||||||
case N_UNDF | N_EXT:
|
case N_UNDF | N_EXT:
|
||||||
|
|
Loading…
Add table
Reference in a new issue