Support dtor sections on Mach-O.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 5 Feb 2010 22:23:21 +0000 (22:23 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 5 Feb 2010 22:23:21 +0000 (22:23 +0000)
[r27075]

ir/be/begnuas.c

index f8e028f..65a5456 100644 (file)
@@ -93,7 +93,7 @@ static const char *get_section_name(be_gas_section_t section)
                        ".data",
                        NULL,             /* TLS is not supported on Mach-O */
                        ".mod_init_func",
-                       NULL,             /* are there destructors on mach-o? */
+                       ".mod_term_func",
                        ".cstring",
                        ".section\t__IMPORT,__jump_table,symbol_stubs,self_modifying_code+pure_instructions,5",
                        ".section\t__IMPORT,__pointers,non_lazy_symbol_pointers"