From 988e2ff7fee566987eab769be8d08a8fecf29cf1 Mon Sep 17 00:00:00 2001 From: foobar Date: Thu, 28 Dec 2017 15:05:27 +0000 Subject: [PATCH] fix debug info with musl on x86_64 http://lists.nongnu.org/archive/html/tinycc-devel/2017-12/msg00031.html --- tccelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccelf.c b/tccelf.c index 70d47e1..4b35fa1 100644 --- a/tccelf.c +++ b/tccelf.c @@ -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 */