From: Christoph Mallon Date: Fri, 5 Feb 2010 22:23:21 +0000 (+0000) Subject: Support dtor sections on Mach-O. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=0f234e2d94155d13c0e4727871125beda0eaa66d;p=libfirm Support dtor sections on Mach-O. [r27075] --- diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index f8e028fae..65a54566d 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -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"