Commit 708a3f7e authored by Matthias Braun's avatar Matthias Braun
Browse files

begnuas: OS X has .weak_definition and .weak_reference

parent d382a20a
......@@ -462,7 +462,8 @@ static void emit_weak(const ir_entity *entity)
{
const char *directive;
if (be_gas_object_file_format == OBJECT_FILE_FORMAT_MACH_O) {
directive = ".weak_reference";
directive = entity_has_definition(entity) ? ".weak_definition"
: ".weak_reference";
} else {
directive = ".weak";
}
......
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