Unified · Split
| @@ -2302,7 +2302,7 @@ static int final_sections_reloc(TCCState *s1) · 2301 unmodified lines | |||
| 2302 | /* XXX: ignore sections with allocated relocations ? */ | 2302 | /* XXX: ignore sections with allocated relocations ? */ |
| 2303 | for(i = 1; i < s1->nb_sections; i++) { | 2303 | for(i = 1; i < s1->nb_sections; i++) { |
| 2304 | s = s1->sections[i]; | 2304 | s = s1->sections[i]; |
| 2305 | if (s->reloc && s != s1->got) | 2305 | if (s->reloc && s != s1->got && (s->sh_flags & SHF_ALLOC)) //gr |
| 2306 | relocate_section(s1, s); | 2306 | relocate_section(s1, s); |
| 2307 | } | 2307 | } |
| 2308 | 2308 | ||