With recent changes I got: /usr/lib/crtbegin.o: error: Invalid relocation entry [ 2] '.rela.text' @ 0000007a And: libtcc.o: error: section type conflict: .eh_frame 01 <> 70000001
Unified · Split
| @@ -3169,9 +3169,11 @@ invalid: · 3168 unmodified lines | ||
| 3169 | 3169 | || 0 == strncmp(sh_name, ".stab", 5)) { |
| 3170 | 3170 | if (!s1->do_debug || seencompressed) |
| 3171 | 3171 | continue; |
| 3172 | +#if !(TARGETOS_OpenBSD || TARGETOS_FreeBSD || TARGETOS_NetBSD) | |
| 3172 | 3173 | } else if (0 == strncmp(sh_name, ".eh_frame", 9)) { |
| 3173 | 3174 | if (NULL == eh_frame_section) |
| 3174 | 3175 | continue; |
| 3176 | +#endif | |
| 3175 | 3177 | } else |
| 3176 | 3178 | if (sh->sh_type != SHT_PROGBITS && |
| 3177 | 3179 | sh->sh_type != SHT_NOTE && |
| @@ -3181,6 +3183,9 @@ invalid: · 3 unmodified lines | ||
| 3181 | 3183 | sh->sh_type != SHT_FINI_ARRAY |
| 3182 | 3184 | #ifdef TCC_ARM_EABI |
| 3183 | 3185 | && sh->sh_type != SHT_ARM_EXIDX |
| 3186 | +#endif | |
| 3187 | +#if TARGETOS_OpenBSD || TARGETOS_FreeBSD || TARGETOS_NetBSD | |
| 3188 | + && sh->sh_type != SHT_X86_64_UNWIND | |
| 3184 | 3189 | #endif |
| 3185 | 3190 | ) |
| 3186 | 3191 | continue; |
| @@ -3195,7 +3200,7 @@ invalid: · 8 unmodified lines | ||
| 3195 | 3200 | if (strcmp(s->name, sh_name)) |
| 3196 | 3201 | continue; |
| 3197 | 3202 | if (sh->sh_type != s->sh_type |
| 3198 | − && s != eh_frame_section | |
| 3203 | + && strcmp (s->name, ".eh_frame") | |
| 3199 | 3204 | ) { |
| 3200 | 3205 | tcc_error_noabort("section type conflict: %s %02x <> %02x", s->name, sh->sh_type, s->sh_type); |
| 3201 | 3206 | goto the_end; |