Fix stab debug problem with common section
This commit is contained in:
parent
dd69143ae6
commit
079692016d
1 changed files with 2 additions and 1 deletions
3
tccdbg.c
3
tccdbg.c
|
@ -1958,7 +1958,8 @@ ST_FUNC void tcc_debug_extern_sym(TCCState *s1, Sym *sym, int sh_num, int sym_bi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Section *s = s1->sections[sh_num];
|
Section *s = sh_num == SHN_COMMON ? common_section
|
||||||
|
: s1->sections[sh_num];
|
||||||
CString str;
|
CString str;
|
||||||
|
|
||||||
cstr_new (&str);
|
cstr_new (&str);
|
||||||
|
|
Loading…
Reference in a new issue