aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2017-04-20 22:01:50 +0200
committerMarc Vertes <mvertes@free.fr>2017-04-20 22:01:50 +0200
commit0ac29b53dc038408b08e0f8515ae6edabc145f76 (patch)
tree486075117b53ddca84c5d42adb7b8b182277b0ed /tccelf.c
parent328b826e8a43ed39f9eebb8493cc6abea2ddac1c (diff)
downloadtinycc-0ac29b53dc038408b08e0f8515ae6edabc145f76.tar.gz
tinycc-0ac29b53dc038408b08e0f8515ae6edabc145f76.tar.bz2
Add support of musl-libc
The port is functional. Bound checking is not supported yet.
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c2
1 files changed, 1 insertions, 1 deletions
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 */