History

Fix dll on arm.

Do not output the arm stack unwinding section (SHT_ARM_EXIDX).

herman ten brugge committed 6 years ago

Commit 3cfaaaf1 parent a0a0f4d1 file · +7 −0Browse files

Unified · Split

tccelf.c+7−0
@@ -1794,6 +1794,13 @@ static int alloc_sec_names(TCCState *s1, int file_type, Section *strsec) · 1793 unmodified lines
17941794 /* we output all sections if debug or object file */
17951795 s->sh_size = s->data_offset;
17961796 }
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
17971804 if (s->sh_size || (s->sh_flags & SHF_ALLOC))
17981805 s->sh_name = put_elf_str(strsec, s->name);
17991806 }

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