do not output no_dead_strip for anonymous entities on macho targets
authorMatthias Braun <matze@braunis.de>
Wed, 9 Feb 2011 13:55:14 +0000 (13:55 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 9 Feb 2011 13:55:14 +0000 (13:55 +0000)
[r28344]

ir/be/begnuas.c

index ab641c6..6c2165b 100644 (file)
@@ -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');