Commit c149643e authored by Matthias Braun's avatar Matthias Braun
Browse files

macho: comdat functions have to be marked .weak_definition

parent 4a810252
......@@ -660,6 +660,8 @@ void be_gas_emit_function_prolog(const ir_entity *entity, unsigned po2alignment,
be_emit_write_line();
break;
case OBJECT_FILE_FORMAT_MACH_O:
if (section == (GAS_SECTION_TEXT | GAS_SECTION_FLAG_COMDAT))
emit_symbol_directive(".weak_definition", entity);
break;
}
be_gas_emit_entity(entity);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment