Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
2af4a979
Commit
2af4a979
authored
Feb 11, 2010
by
Matthias Braun
Browse files
fix weak external functions
[r27116]
parent
bb4b701e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/begnuas.c
View file @
2af4a979
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment