Commit 7f1ba3fd authored by Matthias Braun's avatar Matthias Braun
Browse files

output 'x' instead of 'w' flag for text setions

[r27167]
parent abbf9492
......@@ -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');
......
Supports Markdown
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