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');
} else if (entity_has_compound_ent_values(entity)) {
/* I'm too lazy to implement this case as compound graph paths will be
* remove anyway in the future */
+ return false;
}
/* uninitialized, NULL is fine */
return true;
return section | GAS_SECTION_FLAG_TLS;
}
+ /* the java frontend keeps some functions inside classes */
+ if (is_Class_type(owner)) {
+ return determine_basic_section(entity);
+ }
+
panic("Couldn't determine section for %+F?!?", entity);
}
case iro_SymConst:
switch (get_SymConst_kind(init)) {
- case symconst_addr_name:
- be_emit_ident(get_SymConst_name(init));
- break;
-
case symconst_addr_ent:
ent = get_SymConst_entity(init);
be_gas_emit_entity(ent);
if (entity_is_null(entity)) {
be_emit_irprintf("\t.space %u\n", get_type_size_bytes(type));
be_emit_write_line();
- } else if(entity_has_compound_ent_values(entity)) {
+ } else if (entity_has_compound_ent_values(entity)) {
emit_compound_graph_init(env, entity);
} else {
assert(entity->initializer != NULL);