mirror of
https://github.com/frida/tinycc
synced 2025-01-11 14:19:19 +03:00
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:
parent
414b224efa
commit
988e2ff7fe
2
tccelf.c
2
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user