diff options
| author | seyko <seyko2@gmail.com> | 2015-03-03 14:39:27 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-03-03 14:39:27 +0300 |
| commit | 09d4e4f408387fa897a9c5d28ef4e50969574da6 (patch) | |
| tree | a79611eece59f259a63491db745dba844c32ecf1 | |
| parent | 252a151fc6b701b23745d1d076e10a6fa465ed84 (diff) | |
| download | tinycc-09d4e4f408387fa897a9c5d28ef4e50969574da6.tar.gz tinycc-09d4e4f408387fa897a9c5d28ef4e50969574da6.tar.bz2 | |
Revert a grischka patch: gdb refused to know "main"
It is a strange patch because before this commit a gdb is working well
and after this commit there is exactly the same problem on Linux:
gdb refuses to know "main"
Author: grischka <grischka>
Date: Tue Feb 5 21:18:29 2013 +0100
tccelf: fix debug section relocation
With:
tcc -g hello.c
gdb a.out
b main
gdb refused to know "main" because of broken dwarf info.
| -rw-r--r-- | tccelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2302,7 +2302,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 (s->reloc && s != s1->got) + if (s->reloc && s != s1->got && (s->sh_flags & SHF_ALLOC)) //gr relocate_section(s1, s); } |
