From 0f234e2d94155d13c0e4727871125beda0eaa66d Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 5 Feb 2010 22:23:21 +0000 Subject: [PATCH] Support dtor sections on Mach-O. [r27075] --- ir/be/begnuas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.20.1