mirror of
https://github.com/frida/tinycc
synced 2025-01-26 21:22:02 +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 ? */
|
/* XXX: ignore sections with allocated relocations ? */
|
||||||
for(i = 1; i < s1->nb_sections; i++) {
|
for(i = 1; i < s1->nb_sections; i++) {
|
||||||
s = s1->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
|
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
|
/* On X86 gdb 7.3 works in any case but gdb 6.6 will crash if SHF_ALLOC
|
||||||
checking is removed */
|
checking is removed */
|
||||||
|
Loading…
Reference in New Issue
Block a user