Unified · Split
| @@ -1958,7 +1958,8 @@ ST_FUNC void tcc_debug_extern_sym(TCCState *s1, Sym *sym, int sh_num, int sym_bi · 1957 unmodified lines | ||
| 1958 | 1958 | } |
| 1959 | 1959 | else |
| 1960 | 1960 | { |
| 1961 | − Section *s = s1->sections[sh_num]; | |
| 1961 | + Section *s = sh_num == SHN_COMMON ? common_section | |
| 1962 | + : s1->sections[sh_num]; | |
| 1962 | 1963 | CString str; |
| 1963 | 1964 | |
| 1964 | 1965 | cstr_new (&str); |