mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 15:44:18 +08:00
Fix stab debug problem with common section
This commit is contained in:
parent
dd69143ae6
commit
079692016d
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 New Issue
Block a user