diff options
| author | Marc Vertes <mvertes@free.fr> | 2017-04-20 22:01:50 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2017-04-20 22:01:50 +0200 |
| commit | 0ac29b53dc038408b08e0f8515ae6edabc145f76 (patch) | |
| tree | 486075117b53ddca84c5d42adb7b8b182277b0ed /tccelf.c | |
| parent | 328b826e8a43ed39f9eebb8493cc6abea2ddac1c (diff) | |
| download | tinycc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |
