output 'x' instead of 'w' flag for text setions
authorMatthias Braun <matze@braunis.de>
Mon, 15 Feb 2010 13:45:37 +0000 (13:45 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 15 Feb 2010 13:45:37 +0000 (13:45 +0000)
[r27167]

ir/be/begnuas.c

index 1e04783..703d81a 100644 (file)
@@ -161,7 +161,9 @@ static void emit_section(be_gas_section_t section, const ir_entity *entity)
        be_emit_cstring(",\"");
        if (be_gas_object_file_format != OBJECT_FILE_FORMAT_COFF)
                be_emit_char('a');
-       if (base != GAS_SECTION_RODATA)
+       if (base == GAS_SECTION_TEXT)
+               be_emit_char('x');
+       if (base != GAS_SECTION_RODATA && base != GAS_SECTION_TEXT)
                be_emit_char('w');
        if (flags & GAS_SECTION_FLAG_TLS)
                be_emit_char('T');