aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libtcc.c b/libtcc.c
index 1a68f34..a9920c3 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -72,6 +72,12 @@ ST_DATA void *rt_prog_main;
#endif /* ALL_IN_ONE */
/********************************************************/
+#ifndef CONFIG_TCC_ASM_LABEL
+ST_FUNC void asm_label_instr(CString *)
+{
+ error("inline asm() not supported");
+}
+#endif
#ifndef CONFIG_TCC_ASM
ST_FUNC void asm_instr(void)
{
@@ -436,7 +442,10 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section,
}
if (!sym->c) {
- name = get_tok_str(sym->v, NULL);
+ if (sym->a)
+ name = get_tok_str(sym->a, NULL);
+ else
+ name = get_tok_str(sym->v, NULL);
#ifdef CONFIG_TCC_BCHECK
if (tcc_state->do_bounds_check) {
char buf[32];