Commit 43e469da authored by Matthias Braun's avatar Matthias Braun
Browse files

do not output no_dead_strip for anonymous entities on macho targets

[r28344]
parent c2eb9779
......@@ -489,7 +489,8 @@ static void emit_visibility(const ir_entity *entity)
}
if (be_gas_object_file_format == OBJECT_FILE_FORMAT_MACH_O
&& (linkage & IR_LINKAGE_HIDDEN_USER)) {
&& (linkage & IR_LINKAGE_HIDDEN_USER)
&& get_entity_ld_name(entity)[0] != '\0') {
be_emit_cstring("\t.no_dead_strip ");
be_gas_emit_entity(entity);
be_emit_char('\n');
......
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