1
0
Fork 0

Fix stab debug problem with common section

This commit is contained in:
herman ten brugge 2022-12-11 15:36:37 +01:00
parent dd69143ae6
commit 079692016d
1 changed files with 2 additions and 1 deletions

View File

@ -1958,7 +1958,8 @@ ST_FUNC void tcc_debug_extern_sym(TCCState *s1, Sym *sym, int sh_num, int sym_bi
}
else
{
Section *s = s1->sections[sh_num];
Section *s = sh_num == SHN_COMMON ? common_section
: s1->sections[sh_num];
CString str;
cstr_new (&str);