Commit 2af4a979 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix weak external functions

[r27116]
parent bb4b701e
......@@ -78,7 +78,7 @@ static const char *get_section_name(be_gas_section_t section)
{ /* OBJECT_FILE_FORMAT_COFF */
".section\t.text",
".section\t.data",
".section .rdata,\"dr\"",
".section\t.rdata,\"dr\"",
".section\t.bss",
".section\t.tdata,\"awT\",@progbits",
".section\t.tbss,\"awT\",@nobits",
......@@ -1285,14 +1285,20 @@ static void dump_global(be_gas_decl_env_t *env, const ir_entity *ent)
ir_visibility visibility = get_entity_visibility(ent);
ir_linkage linkage = get_entity_linkage(ent);
/* block labels are already emittet in the code */
if (type == firm_code_type)
return;
/* we already emitted all methods. Except for the trampolines which
* the assembler/linker generates */
if (is_Method_type(type) && section != GAS_SECTION_PIC_TRAMPOLINES) {
/* functions with graph are already emitted with
* be_gas_emit_function_prolog */
if (get_entity_irg(ent) == NULL) {
emit_visibility(ent);
}
return;
}
/* block labels are already emittet in the code */
if (type == firm_code_type)
return;
be_dbg_variable(ent);
......
Markdown is supported
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