Do not output the arm stack unwinding section (SHT_ARM_EXIDX).
Unified · Split
| @@ -1794,6 +1794,13 @@ static int alloc_sec_names(TCCState *s1, int file_type, Section *strsec) · 1793 unmodified lines | |||
| 1794 | /* we output all sections if debug or object file */ | 1794 | /* we output all sections if debug or object file */ |
| 1795 | s->sh_size = s->data_offset; | 1795 | s->sh_size = s->data_offset; |
| 1796 | } | 1796 | } |
| 1797 | #ifdef TCC_TARGET_ARM | ||
| 1798 | /* XXX: Suppress stack unwinding section. */ | ||
| 1799 | if (s->sh_type == SHT_ARM_EXIDX) { | ||
| 1800 | s->sh_flags = 0; | ||
| 1801 | s->sh_size = 0; | ||
| 1802 | } | ||
| 1803 | #endif | ||
| 1797 | if (s->sh_size || (s->sh_flags & SHF_ALLOC)) | 1804 | if (s->sh_size || (s->sh_flags & SHF_ALLOC)) |
| 1798 | s->sh_name = put_elf_str(strsec, s->name); | 1805 | s->sh_name = put_elf_str(strsec, s->name); |
| 1799 | } | 1806 | } |