From 0ac29b53dc038408b08e0f8515ae6edabc145f76 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 20 Apr 2017 22:01:50 +0200 Subject: Add support of musl-libc The port is functional. Bound checking is not supported yet. --- tccelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index 5208545..6a27495 100644 --- a/tccelf.c +++ b/tccelf.c @@ -1718,7 +1718,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]; -#ifdef TCC_TARGET_I386 +#if defined(TCC_TARGET_I386) || defined(TCC_MUSL) 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 */ -- cgit v1.3.1