diff options
author | Matthias Braun <matze@braunis.de> | 2010-04-15 16:17:45 +0200 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2010-04-15 16:17:45 +0200 |
commit | 04321ea9f9ac1185bd7092813c34683aa15cd05f (patch) | |
tree | 8de941a40e434f0d2e00ffa023327b1ec27c7cd9 | |
parent | 001d1f92fdd67afac2513be66c4e6f3573aa68e5 (diff) |
gas on cygwin doesn't like section type (althought that's not what the docu says IMO)libfirm-1.18.0
[r27408]
-rw-r--r-- | ir/be/begnuas.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index edebbf8..63087a8 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -169,9 +169,12 @@ static void emit_section(be_gas_section_t section, const ir_entity *entity) be_emit_char('T'); if (flags & GAS_SECTION_FLAG_COMDAT) be_emit_char('G'); - be_emit_cstring("\","); - be_emit_char(be_gas_elf_type_char); - be_emit_string(type[base]); + /* section type */ + if (be_gas_object_file_format != OBJECT_FILE_FORMAT_COFF) { + be_emit_cstring("\","); + be_emit_char(be_gas_elf_type_char); + be_emit_string(type[base]); + } if (flags & GAS_SECTION_FLAG_COMDAT) { be_emit_char(','); |