History

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"

seyko committed 11 years ago

Commit 09d4e4f1 parent 252a1511 file · +1 −1Browse files

Unified · Split

tccelf.c+1−1
@@ -2302,7 +2302,7 @@ static int final_sections_reloc(TCCState *s1) · 2301 unmodified lines
23022302 /* XXX: ignore sections with allocated relocations ? */
23032303 for(i = 1; i < s1->nb_sections; i++) {
23042304 s = s1->sections[i];
2305− if (s->reloc && s != s1->got)
2305+ if (s->reloc && s != s1->got && (s->sh_flags & SHF_ALLOC)) //gr
23062306 relocate_section(s1, s);
23072307 }
23082308

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t