forked from Imagelibrary/binutils-gdb
Do not pass section index to end_compunit_symtab
Right now, the section index passed to end_compunit_symtab is always SECT_OFF_TEXT. Remove this parameter and simply always use SECT_OFF_TEXT.
This commit is contained in:
@@ -3968,7 +3968,7 @@ mdebug_expand_psymtab (legacy_psymtab *pst, struct objfile *objfile)
|
||||
{
|
||||
valu += section_offsets[SECT_OFF_TEXT (objfile)];
|
||||
previous_stab_code = N_SO;
|
||||
cust = end_compunit_symtab (valu, SECT_OFF_TEXT (objfile));
|
||||
cust = end_compunit_symtab (valu);
|
||||
end_stabs ();
|
||||
last_symtab_ended = 1;
|
||||
}
|
||||
@@ -4028,8 +4028,7 @@ mdebug_expand_psymtab (legacy_psymtab *pst, struct objfile *objfile)
|
||||
|
||||
if (! last_symtab_ended)
|
||||
{
|
||||
cust = end_compunit_symtab (pst->raw_text_high (),
|
||||
SECT_OFF_TEXT (objfile));
|
||||
cust = end_compunit_symtab (pst->raw_text_high ());
|
||||
end_stabs ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user