fix debug info with musl on x86_64

http://lists.nongnu.org/archive/html/tinycc-devel/2017-12/msg00031.html
This commit is contained in:
foobar 2017-12-28 15:05:27 +00:00
parent 414b224efa
commit 988e2ff7fe
1 changed files with 1 additions and 1 deletions

View File

@ -1832,7 +1832,7 @@ static int final_sections_reloc(TCCState *s1)
/* XXX: ignore sections with allocated relocations ? */
for(i = 1; i < s1->nb_sections; i++) {
s = s1->sections[i];
#if defined(TCC_TARGET_I386) || defined(TCC_MUSL)
#if defined(TCC_TARGET_I386)
if (s->reloc && s != s1->got && (s->sh_flags & SHF_ALLOC)) //gr
/* On X86 gdb 7.3 works in any case but gdb 6.6 will crash if SHF_ALLOC
checking is removed */